Skip to content

Commit

Permalink
Add Port and Proto variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nemchik committed Feb 18, 2020
1 parent a8c9468 commit 0c24b78
Show file tree
Hide file tree
Showing 136 changed files with 856 additions and 260 deletions.
5 changes: 4 additions & 1 deletion adguard.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app adguard;
proxy_pass http://$upstream_app;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion adminer.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ location ^~ /adminer/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app adminer;
proxy_pass http://$upstream_app:8080;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
7 changes: 5 additions & 2 deletions airsonic.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ server {
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /login;

include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app airsonic;
proxy_pass http://$upstream_app:4040;
set $upstream_port 4040;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion airsonic.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ location ^~ /airsonic {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app airsonic;
proxy_pass http://$upstream_app:4040;
set $upstream_port 4040;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
5 changes: 4 additions & 1 deletion bazarr.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app bazarr;
proxy_pass http://$upstream_app:6767;
set $upstream_port 6767;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion bazarr.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ location ^~ /bazarr/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app bazarr;
proxy_pass http://$upstream_app:6767;
set $upstream_port 6767;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
7 changes: 5 additions & 2 deletions beets.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#First edit beets.yml and enable the reverse proxy settings, under "web" add "reverse_proxy: true" and restart the beets container.
#First edit beets.yml and enable the reverse proxy settings, under "web" add "reverse_proxy: true" and restart the beets container.
#Make sure that your dns has a cname set for beets and that your beets container is not using a base url

server {
Expand Down Expand Up @@ -26,6 +26,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app beets;
proxy_pass http://$upstream_app:8337;
set $upstream_port 8337;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion beets.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ location /beets {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app beets;
proxy_pass http://$upstream_app:8337;
set $upstream_port 8337;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
Expand Down
15 changes: 12 additions & 3 deletions bitwarden.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app bitwarden;
proxy_pass http://$upstream_app:80;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}

location /notifications/hub {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app bitwarden;
proxy_pass http://$upstream_app:80;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
Expand All @@ -42,7 +48,10 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app bitwarden;
proxy_pass http://$upstream_app:80;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}

}
7 changes: 5 additions & 2 deletions booksonic.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ server {
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /login;

include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app booksonic;
proxy_pass http://$upstream_app:4040;
set $upstream_port 4040;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion booksonic.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ location ^~ /booksonic {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app booksonic;
proxy_pass http://$upstream_app:4040;
set $upstream_port 4040;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
5 changes: 4 additions & 1 deletion calibre-web.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app calibre-web;
proxy_pass http://$upstream_app:8083;
set $upstream_port 8083;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $http_host;
proxy_set_header X-Scheme $scheme;
}
Expand Down
5 changes: 4 additions & 1 deletion calibre-web.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ location ^~ /calibre-web/ {

resolver 127.0.0.11 valid=30s;
set $upstream_app calibre-web;
proxy_pass http://$upstream_app:8083;
set $upstream_port 8083;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $http_host;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /calibre-web;
Expand Down
5 changes: 4 additions & 1 deletion calibre.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ server {

resolver 127.0.0.11 valid=30s;
set $upstream_app calibre;
proxy_pass http://$upstream_app:8080;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
Expand Down
7 changes: 5 additions & 2 deletions calibre.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# calibre does not require a base url setting
# calibre does not require a base url setting

location /calibre {
return 301 $scheme://$host/calibre/;
Expand All @@ -14,6 +14,9 @@ location ^~ /calibre/ {

resolver 127.0.0.11 valid=30s;
set $upstream_app calibre;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

rewrite /calibre(.*) $1 break;
proxy_pass http://$upstream_app:8080;
}
5 changes: 4 additions & 1 deletion code-server.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app code-server;
proxy_pass http://$upstream_app:8443;
set $upstream_port 8443;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
Expand Down
7 changes: 5 additions & 2 deletions codimd.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app codimd;
proxy_pass http://$upstream_app:3000;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
}
30 changes: 24 additions & 6 deletions collabora.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,43 @@ server {
location ^~ /loleaflet {
resolver 127.0.0.11 valid=30s;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
set $upstream_port 9980;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $http_host;
}

# WOPI discovery URL
location ^~ /hosting/discovery {
resolver 127.0.0.11 valid=30s;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
set $upstream_port 9980;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $http_host;
}

# Capabilities
location ^~ /hosting/capabilities {
resolver 127.0.0.11 valid=30s;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
set $upstream_port 9980;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $http_host;
}

# main websocket
location ~ ^/lool/(.*)/ws$ {
resolver 127.0.0.11 valid=30s;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
set $upstream_port 9980;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
Expand All @@ -47,15 +59,21 @@ server {
location ~ ^/lool {
resolver 127.0.0.11 valid=30s;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
set $upstream_port 9980;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Host $http_host;
}

# Admin Console websocket
location ^~ /lool/adminws {
resolver 127.0.0.11 valid=30s;
set $upstream_app collabora;
proxy_pass https://$upstream_app:9980;
set $upstream_port 9980;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
Expand Down
5 changes: 4 additions & 1 deletion couchpotato.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app couchpotato;
proxy_pass http://$upstream_app:5050;
set $upstream_port 5050;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion couchpotato.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ location ^~ /couchpotato {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app couchpotato;
proxy_pass http://$upstream_app:5050;
set $upstream_port 5050;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
5 changes: 4 additions & 1 deletion deluge.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app deluge;
proxy_pass http://$upstream_app:8112;
set $upstream_port 8112;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
5 changes: 4 additions & 1 deletion deluge.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ location ^~ /deluge/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app deluge;
set $upstream_port 8112;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

rewrite /deluge(.*) $1 break;
proxy_pass http://$upstream_app:8112;
proxy_set_header X-Deluge-Base "/deluge/";
}
7 changes: 5 additions & 2 deletions dillinger.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app dillinger;
proxy_pass http://$upstream_app:8080;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
}
7 changes: 5 additions & 2 deletions dokuwiki.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# First complete the setup by appending install.php to URL.
# First complete the setup by appending install.php to URL.
# Make sure that your dns has a cname set for dokuwiki

server {
Expand Down Expand Up @@ -26,6 +26,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app dokuwiki;
proxy_pass http://$upstream_app:80;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
7 changes: 5 additions & 2 deletions domoticz.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app domoticz;
proxy_pass http://$upstream_app:8080;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
}
Loading

0 comments on commit 0c24b78

Please sign in to comment.