Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.