1
0
mirror of https://github.com/Adam-Ant/media-server-in-a-box synced 2024-12-20 14:44:34 +00:00

Nginx path fixes

This commit is contained in:
Adam Dodman 2016-09-14 00:21:08 +01:00
parent 808da5f78c
commit 693ea45535

View File

@ -1,7 +1,7 @@
resolver 127.0.0.1; resolver 127.0.0.1;
server { server {
listen 80; listen 80;
server_name genie; server_name plex.genie;
location / { location / {
set $test ""; set $test "";
@ -16,14 +16,14 @@ server {
set $test "${test}B"; set $test "${test}B";
} }
if ($test = AB) { if ($test = AB) {
rewrite ^/$ https://$http_host/web/index.html; rewrite ^/$ http://$http_host/web/index.html;
} }
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://genie:32400; proxy_pass http://plex:32400;
# Plex proxy settings. # Plex proxy settings.
proxy_redirect off; proxy_redirect off;
@ -49,7 +49,7 @@ server {
server_name sickrage.genie; server_name sickrage.genie;
location / { location / {
proxy_pass https://sickrage:8081; proxy_pass http://sickrage:8081;
} }
} }
server { server {
@ -57,7 +57,7 @@ server {
server_name nzbget.genie; server_name nzbget.genie;
location / { location / {
proxy_pass https://nzbget:6791; proxy_pass http://nzbget:6791;
} }
} }
server { server {