Add Port and Proto variables

This commit is contained in:
Eric Nemchik 2020-02-17 17:05:10 -06:00
commit 0c24b78a0b
136 changed files with 856 additions and 260 deletions

View file

@ -15,8 +15,11 @@ location ^~ /portainer/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app portainer;
set $upstream_port 9000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /portainer(.*) $1 break;
proxy_pass http://$upstream_app:9000;
proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0
}
@ -24,8 +27,11 @@ location ^~ /portainer/api/websocket/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app portainer;
set $upstream_port 9000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /portainer(.*) $1 break;
proxy_pass http://$upstream_app:9000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0