joelang6126

radarr.subdomain

Aug 5th, 2020 (edited)
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. # make sure that your dns has a cname set for radarr and that your radarr container is not using a base url
  2.  
  3. server {
  4. listen 443 ssl;
  5. listen [::]:443 ssl;
  6.  
  7. server_name radarr.*;
  8.  
  9. include /config/nginx/ssl.conf;
  10.  
  11. client_max_body_size 0;
  12.  
  13. # enable for ldap auth, fill in ldap details in ldap.conf
  14. #include /config/nginx/ldap.conf;
  15.  
  16. # enable for Authelia
  17. #include /config/nginx/authelia-server.conf;
  18.  
  19. location / {
  20. # enable the next two lines for http auth
  21. #auth_basic "Restricted";
  22. #auth_basic_user_file /config/nginx/.htpasswd;
  23.  
  24. # enable the next two lines for ldap auth
  25. #auth_request /auth;
  26. #error_page 401 =200 /ldaplogin;
  27.  
  28. # enable for Authelia
  29. #include /config/nginx/authelia-location.conf;
  30.  
  31. include /config/nginx/proxy-confs/organizr-auth.subfolder.conf;
  32. auth_request /auth-0;
  33. resolver 127.0.0.11 valid=30s;
  34. set $upstream_app radarr;
  35. set $upstream_port 7878;
  36. set $upstream_proto http;
  37. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  38.  
  39. proxy_set_header Upgrade $http_upgrade;
  40. proxy_set_header Connection $http_connection;
  41. }
  42.  
  43. location ~ (/radarr)?/api {
  44. include /config/nginx/proxy-confs/organizr-auth.subfolder.conf;
  45. auth_request off;
  46. resolver 127.0.0.11 valid=30s;
  47. set $upstream_app radarr;
  48. set $upstream_port 7878;
  49. set $upstream_proto http;
  50. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  51.  
  52. proxy_set_header Upgrade $http_upgrade;
  53. proxy_set_header Connection $http_connection;
  54. }
  55. }
Add Comment
Please, Sign In to add comment