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

Rework nginx to use directories rather than subdomains

This commit is contained in:
Adam Dodman 2017-03-01 19:10:51 +00:00
parent 50b70a3439
commit 69b693aaaa

View File

@ -1,9 +1,9 @@
resolver 127.0.0.1; resolver 127.0.0.1;
server { server {
listen 80; listen 80 default_server;
server_name plex.genie; server_name "";
location / { location /plex {
set $test ""; set $test "";
# If a request to / comes in, 301 redirect to the main plex page, # If a request to / comes in, 301 redirect to the main plex page,
@ -35,60 +35,26 @@ server {
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_read_timeout 36000s; ## Timeout after 10 hours proxy_read_timeout 36000s; ## Timeout after 10 hours
} }
}
server {
listen 80;
server_name deluge.genie;
location / { location /deluge {
proxy_pass http://deluge:8112; 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; proxy_pass http://sickrage:8081;
} }
}
server {
listen 80;
server_name nzbget.genie;
location / { location /nzbget {
proxy_pass http://nzbget:6791; proxy_pass http://nzbget:6791;
} }
}
server {
listen 80;
server_name plexpy.genie;
location / { location /plexpy {
proxy_pass http://plexpy:8181; proxy_pass http://plexpy:8181;
} }
}
server {
listen 80;
server_name couchpotato.genie;
location / { location /couchpotato {
proxy_pass http://couchpotato:5050; 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;
}
} }