mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-14 02:27:24 -07:00
standardize upstream_app variable
This commit is contained in:
parent
c2ae00ce52
commit
06a1941230
136 changed files with 430 additions and 430 deletions
|
@ -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;
|
||||
proxy_pass http://$upstream_app:9000;
|
||||
proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0
|
||||
}
|
||||
|
||||
location ^~ /portainer/api/websocket/ {
|
||||
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;
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue