diff --git a/nginx.cfg b/nginx.cfg index 643b225..7bb882f 100644 --- a/nginx.cfg +++ b/nginx.cfg @@ -1,9 +1,9 @@ resolver 127.0.0.1; server { - listen 80; - server_name plex.genie; + listen 80 default_server; + server_name ""; - location / { + location /plex { set $test ""; # If a request to / comes in, 301 redirect to the main plex page, @@ -35,60 +35,26 @@ server { proxy_set_header Connection "upgrade"; proxy_read_timeout 36000s; ## Timeout after 10 hours } -} -server { - listen 80; - server_name deluge.genie; - location / { + location /deluge { proxy_pass http://deluge:8112; + proxy_set_header X-Deluge-Base "/deluge"; } -} -server { - listen 80; - server_name sickrage.genie; - location / { + location /sickrage { proxy_pass http://sickrage:8081; } -} -server { - listen 80; - server_name nzbget.genie; - location / { + location /nzbget { proxy_pass http://nzbget:6791; } -} -server { - listen 80; - server_name plexpy.genie; - location / { + location /plexpy { proxy_pass http://plexpy:8181; } -} -server { - listen 80; - server_name couchpotato.genie; - location / { + location /couchpotato { proxy_pass http://couchpotato:5050; } -} -server { - listen 80; - server_name headphones.genie; - location / { - proxy_pass http://headphones:8181; - } -} -server { - listen 80; - server_name radarr.genie; - - location / { - proxy_pass http://radarr:7878; - } }