include proxy.conf in portainer subdomain config

This commit is contained in:
Sander 2020-06-04 11:13:49 +02:00 committed by GitHub
parent 61b0468cec
commit 605bd5a2a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ server {
# enable for Authelia # enable for Authelia
#include /config/nginx/authelia-location.conf; #include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s; resolver 127.0.0.11 valid=30s;
set $upstream_app portainer; set $upstream_app portainer;
set $upstream_port 9000; set $upstream_port 9000;
@ -35,7 +36,6 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Connection ""; proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0 proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0
} }
@ -51,6 +51,7 @@ server {
# enable for Authelia # enable for Authelia
#include /config/nginx/authelia-location.conf; #include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s; resolver 127.0.0.11 valid=30s;
set $upstream_app portainer; set $upstream_app portainer;
set $upstream_port 9000; set $upstream_port 9000;
@ -59,7 +60,6 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0 proxy_hide_header X-Frame-Options; # Possibly nott needed after Portainer 1.20.0
} }
} }