Update ingress.conf

This commit is contained in:
Alexandre
2022-08-29 22:28:46 +02:00
committed by GitHub
parent de12d1b386
commit bdbd878748

View File

@@ -13,8 +13,8 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host; # try $host instead if this doesn't work proxy_set_header Host $http_host; # try $host instead if this doesn't work
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host; #proxy_set_header X-Forwarded-Host $http_host;
# Allow ingress subpath # Allow ingress subpath
proxy_set_header X-Script-Name %%ingress_entry%%; proxy_set_header X-Script-Name %%ingress_entry%%;
@@ -45,9 +45,9 @@ server {
# Correct url without port when using https # Correct url without port when using https
sub_filter_once off; sub_filter_once off;
sub_filter_types *; sub_filter_types *;
#sub_filter http://$host/ $x_scheme://$host$x_port/; sub_filter http://$host/ $x_scheme://$host$x_port/;
sub_filter http://$host$x_port/ $x_scheme://$host$x_port/; sub_filter http://$host$x_port/ $x_scheme://$host$x_port/;
sub_filter http://$host/ http://$host$x_port/; #sub_filter http://$host/ http://$host$x_port/;
sub_filter https://$host/ https://$host$x_port/; sub_filter https://$host/ https://$host$x_port/;
#proxy_redirect default; #proxy_redirect default;
#proxy_redirect http://$host/ $x_scheme://$host$x_port/; #proxy_redirect http://$host/ $x_scheme://$host$x_port/;