Created
June 5, 2019 13:29
-
-
Save wolph/0d864cfeb29e11523011a0bd17d99c9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream sonarr { | |
server 127.0.0.1:1234; | |
} | |
server { | |
server_name sonarr; | |
include includes.d/restricted.conf; | |
include includes.d/ssl_server.conf; | |
include includes.d/proxy.conf; | |
proxy_read_timeout 600; | |
proxy_connect_timeout 600; | |
access_log /var/log/nginx/sonarr.access_log; | |
error_log /var/log/nginx/sonarr.error_log info; | |
location / { | |
proxy_pass http://sonarr; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_redirect off; | |
proxy_buffering off; | |
} | |
location /signalr/ { | |
proxy_pass http://sonarr; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_http_version 1.1; | |
proxy_cache_bypass $http_upgrade; | |
} | |
location /MediaCover/ { | |
proxy_pass http://sonarr; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
expires max; | |
add_header Cache-Control 'public'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment