Created
July 29, 2018 04:59
-
-
Save RyanWor/cff4bcd05435f3b685b50bd4a8068c0d 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
server { | |
listen 80 default_server; | |
root /config/www/Dashboard; | |
index index.html index.htm index.php; | |
server_name _; | |
client_max_body_size 0; | |
location / { | |
try_files $uri $uri/ /index.html /index.php?$args =404; | |
} | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
# With php5-cgi alone: | |
fastcgi_pass 127.0.0.1:9000; | |
# With php5-fpm: | |
#fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
include /etc/nginx/fastcgi_params; | |
} | |
location ~ /auth-(.*) { | |
internal; | |
rewrite ^/auth-(.*) /api/?v1/auth&group=$1; | |
} | |
location /plex/ { | |
proxy_pass http://plex:32400/; | |
include config/proxy.conf; | |
} | |
if ($http_referer ~* /plex/) { | |
rewrite ^/web/(.*) /plex/web/$1? redirect; | |
} | |
location /nzbget { | |
auth_request /auth-3; | |
proxy_pass http://nzbget:6789; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /rutorrent { | |
auth_request /auth-2; | |
proxy_pass http://rutorrent:80; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /radarr { | |
auth_request /auth-3; | |
proxy_pass http://radarr:7878; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /radarr4k { | |
auth_request /auth-3; | |
proxy_pass http://radarr4k:7878; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /sonarr { | |
auth_request /auth-3; | |
proxy_pass http://sonarr:8989; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /lidarr { | |
auth_request /auth-3; | |
proxy_pass http://lidarr:8686; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /nzbhydra2 { | |
auth_request /auth-2; | |
proxy_pass http://nzbhydra2:5076; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /jackett { | |
auth_request /auth-2; | |
proxy_pass http://jackett:9117; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /portainer { | |
auth_request /auth-2; | |
proxy_pass http://portainer:9000; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /ubooquity { | |
auth_request /auth-4; | |
proxy_pass http://ubooquity:2202; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /ubooquity/admin { | |
auth_request /auth-2; | |
proxy_pass http://ubooquity:2203; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /lazylibrarian { | |
auth_request /auth-3; | |
proxy_pass http://lazylibrarian:5299; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
location /mylar { | |
auth_request /auth-3; | |
proxy_pass http://mylar:8090; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment