Guest User

Sonarr Config

a guest
Sep 7th, 2020
7
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # make sure that your dns has a cname set for sonarr and that your sonarr container is not using a base url
  2.  
  3. server {
  4. listen 443 ssl;
  5. listen [::]:443 ssl;
  6.  
  7. server_name sonarr.*;
  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.conf;
  32. resolver 127.0.0.11 valid=30s;
  33. set $upstream_app sonarr;
  34. set $upstream_port 8989;
  35. set $upstream_proto http;
  36. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  37.  
  38. }
  39.  
  40. location ~ (/sonarr)?/api {
  41. include /config/nginx/proxy.conf;
  42. resolver 127.0.0.11 valid=30s;
  43. set $upstream_app sonarr;
  44. set $upstream_port 8989;
  45. set $upstream_proto http;
  46. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  47.  
  48. }
  49. }
  50.  
RAW Paste Data