Advertisement
Guest User

1

a guest
Apr 19th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # first go into sonarr settings, under "General" set the URL Base to /sonarr and restart the sonarr container
  2.  
  3. location ^~ /sonarr {
  4. # enable the next two lines for http auth
  5. #auth_basic "Restricted";
  6. #auth_basic_user_file /config/nginx/.htpasswd;
  7.  
  8. # enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
  9. #auth_request /auth;
  10. #error_page 401 =200 /login;
  11.  
  12. include /config/nginx/proxy.conf;
  13. resolver 127.0.0.11 valid=30s;
  14. set $upstream_sonarr sonarr;
  15. proxy_pass http://$upstream_sonarr:8989;
  16. }
  17.  
  18. location ^~ /sonarr/api {
  19. include /config/nginx/proxy.conf;
  20. resolver 127.0.0.11 valid=30s;
  21. set $upstream_sonarr sonarr;
  22. proxy_pass http://$upstream_sonarr:8989;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement