Update ingress.conf

This commit is contained in:
Alexandre
2022-12-20 16:53:56 +01:00
committed by GitHub
parent 8e51cec015
commit a297874ae0

View File

@@ -20,9 +20,6 @@ location /switch-space/ {
add_header Access-Control-Allow-Origin *;
proxy_set_header Accept-Encoding "";
absolute_redirect off;
sub_filter_once off;
sub_filter_types *;
# avoid mixed content
# Ensure work with both http and https (code by @met67)
if ($http_referer ~* "^(http[s]?)://([^:]+):(\d*)(/.*)$") {
@@ -44,11 +41,11 @@ location /switch-space/ {
proxy_set_header Host $x_host$x_port; # Required for addresses without ports
# Correct url without port when using https
sub_filter_once off;
sub_filter_types *;
sub_filter https://$x_host/ https://$x_host$x_port/;
sub_filter http://$x_host/ http://$x_host$x_port/;
absolute_redirect off;
sub_filter_once off;
sub_filter_types *;
sub_filter https://$x_host/ https://$x_host$x_port/;
sub_filter http://$x_host/ http://$x_host$x_port/;
sub_filter "/static" "%%ingress_entry%%/static";
sub_filter "/media" "%%ingress_entry%%/media";
sub_filter "http://127.0.0.1:8080/" "/";
@@ -92,6 +89,7 @@ location /switch-space/ {
proxy_set_header Host $x_host$x_port; # Required for addresses without ports
# Correct url without port when using https
absolute_redirect off;
sub_filter_once off;
sub_filter_types *;
sub_filter https://$x_host/ https://$x_host$x_port/;