...
 
Commits (2)
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_adguard adguard;
proxy_pass http://$upstream_adguard;
set $upstream_app adguard;
proxy_pass http://$upstream_app;
}
}
......@@ -14,6 +14,6 @@ location ^~ /adminer/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_adminer adminer;
proxy_pass http://$upstream_adminer:8080;
set $upstream_app adminer;
proxy_pass http://$upstream_app:8080;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_airsonic airsonic;
proxy_pass http://$upstream_airsonic:4040;
set $upstream_app airsonic;
proxy_pass http://$upstream_app:4040;
}
}
......@@ -11,6 +11,6 @@ location ^~ /airsonic {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_airsonic airsonic;
proxy_pass http://$upstream_airsonic:4040;
set $upstream_app airsonic;
proxy_pass http://$upstream_app:4040;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_bazarr bazarr;
proxy_pass http://$upstream_bazarr:6767;
set $upstream_app bazarr;
proxy_pass http://$upstream_app:6767;
}
}
......@@ -14,6 +14,6 @@ location ^~ /bazarr/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_bazarr bazarr;
proxy_pass http://$upstream_bazarr:6767;
set $upstream_app bazarr;
proxy_pass http://$upstream_app:6767;
}
......@@ -25,7 +25,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_beets beets;
proxy_pass http://$upstream_beets:8337;
set $upstream_app beets;
proxy_pass http://$upstream_app:8337;
}
}
......@@ -11,8 +11,8 @@ location /beets {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_beets beets;
proxy_pass http://$upstream_beets:8337;
set $upstream_app beets;
proxy_pass http://$upstream_app:8337;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
......
......@@ -25,15 +25,15 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_bitwarden bitwarden;
proxy_pass http://$upstream_bitwarden:80;
set $upstream_app bitwarden;
proxy_pass http://$upstream_app:80;
}
location /notifications/hub {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_bitwarden bitwarden;
proxy_pass http://$upstream_bitwarden:80;
set $upstream_app bitwarden;
proxy_pass http://$upstream_app:80;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
......@@ -41,8 +41,8 @@ server {
location /notifications/hub/negotiate {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_bitwarden bitwarden;
proxy_pass http://$upstream_bitwarden:80;
set $upstream_app bitwarden;
proxy_pass http://$upstream_app:80;
}
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_booksonic booksonic;
proxy_pass http://$upstream_boksonic:4040;
set $upstream_app booksonic;
proxy_pass http://$upstream_app:4040;
}
}
......@@ -11,6 +11,6 @@ location ^~ /booksonic {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_booksonic booksonic;
proxy_pass http://$upstream_booksonic:4040;
set $upstream_app booksonic;
proxy_pass http://$upstream_app:4040;
}
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_calibre_web calibre-web;
proxy_pass http://$upstream_calibre_web:8083;
set $upstream_app calibre-web;
proxy_pass http://$upstream_app:8083;
proxy_set_header Host $http_host;
proxy_set_header X-Scheme $scheme;
}
......
......@@ -13,8 +13,8 @@ location ^~ /calibre-web/ {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_calibre_web calibre-web;
proxy_pass http://$upstream_calibre_web:8083;
set $upstream_app calibre-web;
proxy_pass http://$upstream_app:8083;
proxy_set_header Host $http_host;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /calibre-web;
......
......@@ -23,8 +23,8 @@ server {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_calibre calibre;
proxy_pass http://$upstream_calibre:8080;
set $upstream_app calibre;
proxy_pass http://$upstream_app:8080;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
......
......@@ -13,7 +13,7 @@ location ^~ /calibre/ {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_calibre calibre;
set $upstream_app calibre;
rewrite /calibre(.*) $1 break;
proxy_pass http://$upstream_calibre:8080;
proxy_pass http://$upstream_app:8080;
}
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_code_server code-server;
proxy_pass http://$upstream_code_server:8443;
set $upstream_app code-server;
proxy_pass http://$upstream_app:8443;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
......
......@@ -26,7 +26,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_codimd codimd;
proxy_pass http://$upstream_codimd:3000;
set $upstream_app codimd;
proxy_pass http://$upstream_app:3000;
}
}
\ No newline at end of file
......@@ -11,32 +11,32 @@ server {
# static files
location ^~ /loleaflet {
resolver 127.0.0.11 valid=30s;
set $upstream_collabora collabora;
proxy_pass https://$upstream_collabora:9980;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
resolver 127.0.0.11 valid=30s;
set $upstream_collabora collabora;
proxy_pass https://$upstream_collabora:9980;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
proxy_set_header Host $http_host;
}
# Capabilities
location ^~ /hosting/capabilities {
resolver 127.0.0.11 valid=30s;
set $upstream_collabora collabora;
proxy_pass https://$upstream_collabora:9980;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
resolver 127.0.0.11 valid=30s;
set $upstream_collabora collabora;
proxy_pass https://$upstream_collabora:9980;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
......@@ -46,16 +46,16 @@ server {
# download, presentation and image upload
location ~ ^/lool {
resolver 127.0.0.11 valid=30s;
set $upstream_collabora collabora;
proxy_pass https://$upstream_collabora:9980;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
resolver 127.0.0.11 valid=30s;
set $upstream_collabora collabora;
proxy_pass https://$upstream_collabora:9980;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
......
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_couchpotato couchpotato;
proxy_pass http://$upstream_couchpotato:5050;
set $upstream_app couchpotato;
proxy_pass http://$upstream_app:5050;
}
}
......@@ -11,6 +11,6 @@ location ^~ /couchpotato {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_couchpotato couchpotato;
proxy_pass http://$upstream_couchpotato:5050;
set $upstream_app couchpotato;
proxy_pass http://$upstream_app:5050;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_deluge deluge;
proxy_pass http://$upstream_deluge:8112;
set $upstream_app deluge;
proxy_pass http://$upstream_app:8112;
}
}
......@@ -14,8 +14,8 @@ location ^~ /deluge/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_deluge deluge;
set $upstream_app deluge;
rewrite /deluge(.*) $1 break;
proxy_pass http://$upstream_deluge:8112;
proxy_pass http://$upstream_app:8112;
proxy_set_header X-Deluge-Base "/deluge/";
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_dillinger dillinger;
proxy_pass http://$upstream_dillinger:8080;
set $upstream_app dillinger;
proxy_pass http://$upstream_app:8080;
}
}
\ No newline at end of file
......@@ -25,7 +25,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_dokuwiki dokuwiki;
proxy_pass http://$upstream_dokuwiki:80;
set $upstream_app dokuwiki;
proxy_pass http://$upstream_app:80;
}
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_domoticz domoticz;
proxy_pass http://$upstream_domoticz:8080;
set $upstream_app domoticz;
proxy_pass http://$upstream_app:8080;
}
}
\ No newline at end of file
......@@ -11,6 +11,6 @@ location ^~ /domoticz/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_domoticz domoticz;
proxy_pass http://$upstream_domoticz:8080;
set $upstream_app domoticz;
proxy_pass http://$upstream_app:8080;
}
......@@ -17,6 +17,6 @@ location ^~ /dozzle/ {
proxy_buffering off;
proxy_cache off;
resolver 127.0.0.11 valid=30s;
set $upstream_dozzle dozzle;
proxy_pass http://$upstream_dozzle:8080;
set $upstream_app dozzle;
proxy_pass http://$upstream_app:8080;
}
......@@ -23,7 +23,7 @@ server {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_duplicati duplicati;
proxy_pass http://$upstream_duplicati:8200;
set $upstream_app duplicati;
proxy_pass http://$upstream_app:8200;
}
}
......@@ -13,7 +13,7 @@ location ^~ /duplicati/ {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_duplicati duplicati;
set $upstream_app duplicati;
rewrite /duplicati(.*) $1 break;
proxy_pass http://$upstream_duplicati:8200;
proxy_pass http://$upstream_app:8200;
}
# make sure that your dns has a cname set for emby, if emby is running in bridge mode, the below config should work as is, although,
# the container name is expected to be "emby", if not, replace the lines "set $upstream_emby emby;" with "set $upstream_emby <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_emby:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of emby
# the container name is expected to be "emby", if not, replace the lines "set $upstream_app emby;" with "set $upstream_app <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_app:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of emby
# in emby settings, under "Advanced" change the public https port to 443, leave the local ports as is, set the "external domain" to your url,
# and set the "Secure connection mode" to "Handled by reverse proxy"
......@@ -17,8 +17,8 @@ server {
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_emby emby;
proxy_pass http://$upstream_emby:8096;
set $upstream_app emby;
proxy_pass http://$upstream_app:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
......@@ -27,8 +27,8 @@ server {
location ~ (/emby)?/socket {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_emby emby;
proxy_pass http://$upstream_emby:8096;
set $upstream_app emby;
proxy_pass http://$upstream_app:8096;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
......
# if emby is running in bridge mode, the below config should work as is, although, the container name is expected to be "emby",
# if not, replace the lines "set $upstream_emby emby;" with "set $upstream_emby <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_emby:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of emby
# if not, replace the lines "set $upstream_app emby;" with "set $upstream_app <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_app:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of emby
# in emby settings, under "Advanced" change the public https port to 443, leave the local ports as is, set the "external domain" to your url and subdomain,
# and set the "Secure connection mode" to "Handled by reverse proxy"
......@@ -10,8 +10,8 @@ location /emby {
location ^~ /emby/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_emby emby;
proxy_pass http://$upstream_emby:8096;
set $upstream_app emby;
proxy_pass http://$upstream_app:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
......@@ -20,8 +20,8 @@ location ^~ /emby/ {
location ^~ /embywebsocket {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_emby emby;
proxy_pass http://$upstream_emby:8096;
set $upstream_app emby;
proxy_pass http://$upstream_app:8096;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
......
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_embystat embystat;
proxy_pass http://$upstream_embystat:6555;
set $upstream_app embystat;
proxy_pass http://$upstream_app:6555;
}
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_flood flood;
proxy_pass http://$upstream_flood:3000;
set $upstream_app flood;
proxy_pass http://$upstream_app:3000;
}
}
......@@ -14,7 +14,7 @@ location ^~ /flood/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_flood flood;
set $upstream_app flood;
rewrite /flood(.*) $1 break;
proxy_pass http://$upstream_flood:3000;
proxy_pass http://$upstream_app:3000;
}
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_freshrss freshrss;
proxy_pass http://$upstream_freshrss;
set $upstream_app freshrss;
proxy_pass http://$upstream_app;
proxy_redirect off;
proxy_buffering off;
......
......@@ -15,9 +15,9 @@ location ^~ /freshrss/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_freshrss freshrss;
set $upstream_app freshrss;
rewrite /freshrss(.*) $1 break;
proxy_pass http://$upstream_freshrss:80;
proxy_pass http://$upstream_app:80;
proxy_redirect off;
proxy_buffering off;
......
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ghost ghost;
proxy_pass http://$upstream_ghost:2368;
set $upstream_app ghost;
proxy_pass http://$upstream_app:2368;
proxy_redirect off;
}
}
......@@ -12,7 +12,7 @@ location /blog {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ghost ghost;
proxy_pass http://$upstream_ghost:2368;
set $upstream_app ghost;
proxy_pass http://$upstream_app:2368;
proxy_redirect off;
}
......@@ -30,7 +30,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_gitea gitea;
proxy_pass http://$upstream_gitea:3000;
set $upstream_app gitea;
proxy_pass http://$upstream_app:3000;
}
}
......@@ -11,7 +11,7 @@ location /gitea {
location ^~ /gitea/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_gitea gitea;
set $upstream_app gitea;
rewrite /gitea(.*) $1 break;
proxy_pass http://$upstream_gitea:3000;
proxy_pass http://$upstream_app:3000;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_glances glances;
proxy_pass http://$upstream_glances:61208;
set $upstream_app glances;
proxy_pass http://$upstream_app:61208;
}
}
......@@ -14,7 +14,7 @@ location ^~ /glances/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_glances glances;
set $upstream_app glances;
rewrite /glances(.*) $1 break;
proxy_pass http://$upstream_glances:61208;
proxy_pass http://$upstream_app:61208;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_grafana grafana;
proxy_pass http://$upstream_grafana:3000;
set $upstream_app grafana;
proxy_pass http://$upstream_app:3000;
}
}
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_grocy grocy;
proxy_pass http://$upstream_grocy:80;
set $upstream_app grocy;
proxy_pass http://$upstream_app:80;
}
}
\ No newline at end of file
......@@ -25,7 +25,7 @@ server {
include /config/nginx/proxy.conf;
proxy_buffering off;
resolver 127.0.0.11 valid=30s;
set $upstream_guacamole guacamole;
proxy_pass http://$upstream_guacamole:8080;
set $upstream_app guacamole;
proxy_pass http://$upstream_app:8080;
}
}
......@@ -15,7 +15,7 @@ location ^~ /guacamole/ {
include /config/nginx/proxy.conf;
proxy_buffering off;
resolver 127.0.0.11 valid=30s;
set $upstream_guacamole guacamole;
set $upstream_app guacamole;
rewrite /guacamole(.*) $1 break;
proxy_pass http://$upstream_guacamole:8080;
proxy_pass http://$upstream_app:8080;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_headphones headphones;
proxy_pass http://$upstream_headphones:8181;
set $upstream_app headphones;
proxy_pass http://$upstream_app:8181;
}
}
......@@ -11,6 +11,6 @@ location ^~ /headphones {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_headphones headphones;
proxy_pass http://$upstream_headphones:8181;
set $upstream_app headphones;
proxy_pass http://$upstream_app:8181;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_heimdall heimdall;
proxy_pass https://$upstream_heimdall:443;
set $upstream_app heimdall;
proxy_pass https://$upstream_app:443;
}
}
......@@ -11,6 +11,6 @@ location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_heimdall heimdall;
proxy_pass https://$upstream_heimdall:443;
set $upstream_app heimdall;
proxy_pass https://$upstream_app:443;
}
......@@ -24,14 +24,14 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_homeassistant homeassistant;
proxy_pass http://$upstream_homeassistant:8123;
set $upstream_app homeassistant;
proxy_pass http://$upstream_app:8123;
}
location /api/websocket {
resolver 127.0.0.11 valid=30s;
set $upstream_homeassistant homeassistant;
proxy_pass http://$upstream_homeassistant:8123;
set $upstream_app homeassistant;
proxy_pass http://$upstream_app:8123;
proxy_set_header Host $host;
proxy_http_version 1.1;
......
......@@ -24,14 +24,14 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jackett jackett;
proxy_pass http://$upstream_jackett:9117;
set $upstream_app jackett;
proxy_pass http://$upstream_app:9117;
}
location ~ (/jackett)?/(api|dl) {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jackett jackett;
proxy_pass http://$upstream_jackett:9117;
set $upstream_app jackett;
proxy_pass http://$upstream_app:9117;
}
}
......@@ -11,13 +11,13 @@ location /jackett {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jackett jackett;
proxy_pass http://$upstream_jackett:9117;
set $upstream_app jackett;
proxy_pass http://$upstream_app:9117;
}
location ~ /jackett/(api|dl) {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jackett jackett;
proxy_pass http://$upstream_jackett:9117;
set $upstream_app jackett;
proxy_pass http://$upstream_app:9117;
}
# make sure that your dns has a cname set for jellyfin, if jellyfin is running in bridge mode, the below config should work as is, although,
# the container name is expected to be "jellyfin", if not, replace the lines "set $upstream_jellyfin jellyfin;" with "set $upstream_jellyfin <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_jellyfin:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of jellyfin
# the container name is expected to be "jellyfin", if not, replace the lines "set $upstream_app jellyfin;" with "set $upstream_app <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_app:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of jellyfin
# in jellyfin settings, under "Advanced/Networking" change the public https port to 443, leave the local ports as is,
# and set the "Secure connection mode" to "Handled by reverse proxy"
......@@ -17,8 +17,8 @@ server {
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jellyfin jellyfin;
proxy_pass http://$upstream_jellyfin:8096;
set $upstream_app jellyfin;
proxy_pass http://$upstream_app:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
......@@ -27,8 +27,8 @@ server {
location ~ (/jellyfin)?/socket {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jellyfin jellyfin;
proxy_pass http://$upstream_jellyfin:8096;
set $upstream_app jellyfin;
proxy_pass http://$upstream_app:8096;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
......
# if jellyfin is running in bridge mode, the below config should work as is, although, the container name is expected to be "jellyfin",
# if not, replace the lines "set $upstream_jellyfin jellyfin;" with "set $upstream_jellyfin <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_jellyfin:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of jellyfin
# if not, replace the lines "set $upstream_app jellyfin;" with "set $upstream_app <containername>;"
# for host mode, replace the lines "proxy_pass http://$upstream_app:8096;" with "proxy_pass http://HOSTIP:8096;" HOSTIP being the IP address of jellyfin
# in jellyfin settings, under "Advanced/Networking" change the public https port to 443, leave the local ports as is, set the base url to "/jellyfin",
# and set the "Secure connection mode" to "Handled by reverse proxy"
......@@ -10,8 +10,8 @@ location /jellyfin {
location ^~ /jellyfin/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_jellyfin jellyfin;
proxy_pass http://$upstream_jellyfin:8096;
set $upstream_app jellyfin;
proxy_pass http://$upstream_app:8096;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
......
......@@ -24,6 +24,6 @@ location ^~ /jenkins/ {
proxy_request_buffering off;
proxy_buffering off;
resolver 127.0.0.11 valid=30s;
set $upstream_jenkins jenkins;
proxy_pass http://$upstream_jenkins:8080;
set $upstream_app jenkins;
proxy_pass http://$upstream_app:8080;
}
\ No newline at end of file
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_kanzi kanzi;
proxy_pass https://$upstream_kanzi:8000;
set $upstream_app kanzi;
proxy_pass https://$upstream_app:8000;
}
}
......@@ -14,7 +14,7 @@ location ^~ /kanzi/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_kanzi kanzi;
set $upstream_app kanzi;
rewrite /kanzi(.*) $1 break;
proxy_pass https://$upstream_kanzi:8000;
proxy_pass https://$upstream_app:8000;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lazylibrarian lazylibrarian;
proxy_pass http://$upstream_lazylibrarian:5299;
set $upstream_app lazylibrarian;
proxy_pass http://$upstream_app:5299;
}
}
......@@ -11,6 +11,6 @@ location ^~ /lazylibrarian {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lazylibrarian lazylibrarian;
proxy_pass http://$upstream_lazylibrarian:5299;
set $upstream_app lazylibrarian;
proxy_pass http://$upstream_app:5299;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_librespeed librespeed;
proxy_pass http://$upstream_librespeed;
set $upstream_app librespeed;
proxy_pass http://$upstream_app;
}
}
......@@ -24,14 +24,14 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lidarr lidarr;
proxy_pass http://$upstream_lidarr:8686;
set $upstream_app lidarr;
proxy_pass http://$upstream_app:8686;
}
location ~ (/lidarr)?/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lidarr lidarr;
proxy_pass http://$upstream_lidarr:8686;
set $upstream_app lidarr;
proxy_pass http://$upstream_app:8686;
}
}
......@@ -11,13 +11,13 @@ location ^~ /lidarr {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lidarr lidarr;
proxy_pass http://$upstream_lidarr:8686;
set $upstream_app lidarr;
proxy_pass http://$upstream_app:8686;
}
location ^~ /lidarr/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lidarr lidarr;
proxy_pass http://$upstream_lidarr:8686;
set $upstream_app lidarr;
proxy_pass http://$upstream_app:8686;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_lychee lychee;
proxy_pass http://$upstream_lychee;
set $upstream_app lychee;
proxy_pass http://$upstream_app;
}
}
......@@ -26,7 +26,7 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
resolver 127.0.0.11 valid=30s;
set $upstream_medusa medusa;
proxy_pass http://$upstream_medusa:8081;
set $upstream_app medusa;
proxy_pass http://$upstream_app:8081;
}
}
......@@ -13,6 +13,6 @@ location ^~ /medusa {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
resolver 127.0.0.11 valid=30s;
set $upstream_medusa medusa;
proxy_pass http://$upstream_medusa:8081;
set $upstream_app medusa;
proxy_pass http://$upstream_app:8081;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_monitorr monitorr;
proxy_pass http://$upstream_monitorr:80;
set $upstream_app monitorr;
proxy_pass http://$upstream_app:80;
}
}
......@@ -14,6 +14,6 @@ location ^~ /monitorr/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_monitorr monitorr;
proxy_pass http://$upstream_monitorr:80;
set $upstream_app monitorr;
proxy_pass http://$upstream_app:80;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_mstream mstream;
proxy_pass http://$upstream_mstream:3000;
set $upstream_app mstream;
proxy_pass http://$upstream_app:3000;
}
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_mylar mylar;
proxy_pass http://$upstream_mylar:8090;
set $upstream_app mylar;
proxy_pass http://$upstream_app:8090;
}
}
......@@ -11,6 +11,6 @@ location ^~ /mylar {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_mylar mylar;
proxy_pass http://$upstream_mylar:8090;
set $upstream_app mylar;
proxy_pass http://$upstream_app:8090;
}
......@@ -16,6 +16,6 @@ location ^~ /todo/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_mytinytodo mytinytodo;
proxy_pass http://$upstream_mytinytodo:80/;
set $upstream_app mytinytodo;
proxy_pass http://$upstream_app:80/;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_netdata netdata;
proxy_pass http://$upstream_netdata:19999;
set $upstream_app netdata;
proxy_pass http://$upstream_app:19999;
}
}
......@@ -14,7 +14,7 @@ location ^~ /netdata/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_netdata netdata;
set $upstream_app netdata;
rewrite /netdata(.*) $1 break;
proxy_pass http://$upstream_netdata:19999;
proxy_pass http://$upstream_app:19999;
}
......@@ -25,8 +25,8 @@ server {
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nextcloud nextcloud;
set $upstream_app nextcloud;
proxy_max_temp_file_size 2048m;
proxy_pass https://$upstream_nextcloud:443;
proxy_pass https://$upstream_app:443;
}
}
......@@ -26,9 +26,9 @@ location /nextcloud {
location ^~ /nextcloud/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nextcloud nextcloud;
set $upstream_app nextcloud;
rewrite /nextcloud(.*) $1 break;
proxy_pass https://$upstream_nextcloud:443;
proxy_pass https://$upstream_app:443;
proxy_max_temp_file_size 2048m;
......
......@@ -24,28 +24,28 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
location ~ (/nzbget)?(/[^\/:]*:[^\/:]*)?/jsonrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
location ~ (/nzbget)?(/[^\/:]*:[^\/]*)?/jsonprpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
location ~ (/nzbget)?(/[^\/:]*:[^\/]*)?/xmlrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
}
......@@ -11,27 +11,27 @@ location /nzbget {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
location ~ /nzbget(/[^\/:]*:[^\/]*)?/jsonrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
location ~ /nzbget(/[^\/:]*:[^\/]*)?/jsonprpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
location ~ /nzbget(/[^\/:]*:[^\/]*)?/xmlrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
set $upstream_app nzbget;
proxy_pass http://$upstream_app:6789;
}
......@@ -24,43 +24,43 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ~ (/nzbhydra)?/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ~ (/nzbhydra)?/getnzb {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ~ (/nzbhydra)?/gettorrent {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ~ (/nzbhydra)?/rss {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ~ (/nzbhydra)?/torznab/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
}
......@@ -11,41 +11,41 @@ location ^~ /nzbhydra {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ^~ /nzbhydra/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ^~ /nzbhydra/getnzb {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ^~ /nzbhydra/gettorrent {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ^~ /nzbhydra/rss {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
location ^~ /nzbhydra/torznab/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbhydra hydra2;
proxy_pass http://$upstream_nzbhydra:5076;
set $upstream_app hydra2;
proxy_pass http://$upstream_app:5076;
}
......@@ -24,24 +24,24 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ombi ombi;
proxy_pass http://$upstream_ombi:3579;
set $upstream_app ombi;
proxy_pass http://$upstream_app:3579;
}
# This allows access to the actual api
location ~ (/ombi)?/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ombi ombi;
proxy_pass http://$upstream_ombi:3579;
set $upstream_app ombi;
proxy_pass http://$upstream_app:3579;
}
# This allows access to the documentation for the api
location ~ (/ombi)?/swagger {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ombi ombi;
proxy_pass http://$upstream_ombi:3579;
set $upstream_app ombi;
proxy_pass http://$upstream_app:3579;
}
if ($http_referer ~* /ombi) {
rewrite ^/swagger/(.*) /ombi/swagger/$1? redirect;
......
......@@ -15,16 +15,16 @@ location ^~ /ombi/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ombi ombi;
proxy_pass http://$upstream_ombi:3579;
set $upstream_app ombi;
proxy_pass http://$upstream_app:3579;
}
# This allows access to the actual api
location ^~ /ombi/api {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ombi ombi;
proxy_pass http://$upstream_ombi:3579;
set $upstream_app ombi;
proxy_pass http://$upstream_app:3579;
}
if ($http_referer ~* /ombi) {
rewrite ^/api/(.*) /ombi/api/$1? redirect;
......@@ -34,8 +34,8 @@ if ($http_referer ~* /ombi) {
location ^~ /ombi/swagger {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ombi ombi;
proxy_pass http://$upstream_ombi:3579;
set $upstream_app ombi;
proxy_pass http://$upstream_app:3579;
}
if ($http_referer ~* /ombi) {
rewrite ^/swagger/(.*) /ombi/swagger/$1? redirect;
......
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ovpn openvpn-as;
proxy_pass https://$upstream_ovpn:943;
set $upstream_app openvpn-as;
proxy_pass https://$upstream_app:943;
}
......@@ -40,7 +40,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_ovpn openvpn-as;
proxy_pass https://$upstream_ovpn:943;
set $upstream_app openvpn-as;
proxy_pass https://$upstream_app:943;
}
}
......@@ -17,8 +17,8 @@ location ~ /auth-([0-9]+) {
internal;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_organizr organizr;
proxy_pass http://$upstream_organizr:80/api/?v1/auth&group=$1;
set $upstream_app organizr;
proxy_pass http://$upstream_app:80/api/?v1/auth&group=$1;
proxy_set_header Content-Length "";
# Do not uncomment the lines below, these are examples for usue in other proxy configs
......
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_organizr organizr;
proxy_pass http://$upstream_organizr:80;
set $upstream_app organizr;
proxy_pass http://$upstream_app:80;
}
# Optional redirect server errors to organizr error pages
......
......@@ -11,8 +11,8 @@ location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_organizr organizr;
proxy_pass http://$upstream_organizr:80;
set $upstream_app organizr;
proxy_pass http://$upstream_app:80;
}
# Optional redirect server errors to organizr error pages
......
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_osticket osticket;
proxy_pass http://$upstream_osticket:80;
set $upstream_app osticket;
proxy_pass http://$upstream_app:80;
}
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_phpmyadmin phpmyadmin;
proxy_pass http://$upstream_phpmyadmin:80;
set $upstream_app phpmyadmin;
proxy_pass http://$upstream_app:80;
}
}
......@@ -14,7 +14,7 @@ location ^~ /phpmyadmin/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_phpmyadmin phpmyadmin;
set $upstream_app phpmyadmin;
rewrite /phpmyadmin(.*) $1 break;
proxy_pass http://$upstream_phpmyadmin:80;
proxy_pass http://$upstream_app:80;
}
......@@ -24,8 +24,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_pihole pihole;
proxy_pass http://$upstream_pihole:80;
set $upstream_app pihole;
proxy_pass http://$upstream_app:80;
proxy_hide_header X-Frame-Options;
}
......@@ -40,8 +40,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_pihole pihole;
proxy_pass http://$upstream_pihole:80;
set $upstream_app pihole;
proxy_pass http://$upstream_app:80;
proxy_hide_header X-Frame-Options;
}
}
......@@ -14,9 +14,9 @@ location ^~ /pihole/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_pihole pihole;
set $upstream_app pihole;
rewrite /pihole(.*) $1 break;
proxy_pass http://$upstream_pihole:80;
proxy_pass http://$upstream_app:80;
proxy_hide_header X-Frame-Options;
}
......@@ -34,8 +34,8 @@ location ^~ /pihole/admin/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_pihole pihole;
set $upstream_app pihole;
rewrite /pihole(.*) $1 break;
proxy_pass http://$upstream_pihole:80;
proxy_pass http://$upstream_app:80;
proxy_hide_header X-Frame-Options;
}
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_piwigo piwigo;
proxy_pass http://$upstream_piwigo;
set $upstream_app piwigo;
proxy_pass http://$upstream_app;
}
}
# make sure that your dns has a cname set for plex, if plex is running in bridge mode, the below config should work as is, for host mode,
# replace the line "proxy_pass http://$upstream_plex:32400;" with "proxy_pass http://HOSTIP:32400;" HOSTIP being the IP address of plex
# replace the line "proxy_pass http://$upstream_app:32400;" with "proxy_pass http://HOSTIP:32400;" HOSTIP being the IP address of plex
# in plex server settings, under network, fill in "Custom server access URLs" with your domain (ie. "https://plex.yourdomain.url:443")
server {
......@@ -29,8 +29,8 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_plex plex;
proxy_pass http://$upstream_plex:32400;
set $upstream_app plex;
proxy_pass http://$upstream_app:32400;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
......
......@@ -3,7 +3,7 @@
# plex does not require a base url setting
# if plex is running in bridge mode, the below config should work as is.
# for host mode, replace the line "proxy_pass http://$upstream_plex:32400;" with "proxy_pass http://HOSTIP:32400;" HOSTIP being the IP address of plex
# for host mode, replace the line "proxy_pass http://$upstream_app:32400;" with "proxy_pass http://HOSTIP:32400;" HOSTIP being the IP address of plex
# in plex server settings, under network, fill in "Custom server access URLs" with your domain (ie. "https://yourdomain.url:443/plex")
location /plex {
......@@ -20,9 +20,9 @@ location ^~ /plex/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_plex plex;
set $upstream_app plex;
rewrite /plex(.*) $1 break;
proxy_pass http://$upstream_plex:32400;
proxy_pass http://$upstream_app:32400;
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
proxy_set_header X-Plex-Device $http_x_plex_device;
......
......@@ -24,7 +24,7 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_plex plex;
proxy_pass http://$upstream_plex:33400;
set $upstream_app plex;
proxy_pass http://$upstream_app:33400;
}
}
......@@ -14,6 +14,6 @@ location ^~ /plexwebtools/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_plex plex;
proxy_pass http://$upstream_plex:33400;
set $upstream_app plex;
proxy_pass http://$upstream_app:33400;
}
......@@ -23,8 +23,8 @@ server {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_portainer portainer;
proxy_pass http://$upstream_portainer:9000;
set $upstream_app portainer;
proxy_pass http://$upstream_app:9000;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0
......@@ -40,8 +40,8 @@ server {
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_portainer portainer;
proxy_pass http://$upstream_portainer:9000;
set $upstream_app portainer;
proxy_pass http://$upstream_app:9000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
......
......@@ -14,18 +14,18 @@ location ^~ /portainer/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_portainer portainer;
set $upstream_app portainer;
rewrite /portainer(.*) $1 break;
proxy_pass http://$upstream_portainer:9000;