Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
PATH=/usr/local/bin:/usr/bin:/bin
sudo cp /volume1/docker/www.usenet.conf /etc/nginx/app.d/www.usenet.conf
sudo nginx -s reload
location ^~ /sabnzbd/ {
proxy_pass http://127.0.0.1:32700;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 1d;
}
location ^~ /sonarr/ {
proxy_pass http://127.0.0.1:32800;
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 X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_redirect off;
proxy_buffering off;
}
location ^~ /radarr/ {
proxy_pass http://127.0.0.1:32900;
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 X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_redirect off;
proxy_buffering off;
}
location ^~ /lidarr/ {
proxy_pass http://127.0.0.1:32100;
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 X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_redirect off;
proxy_buffering off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment