diff --git a/tandoor_recipes/rootfs/etc/nginx/servers/ingress.conf b/tandoor_recipes/rootfs/etc/nginx/servers/ingress.conf index 8cc95dfd8..3a2f5202a 100644 --- a/tandoor_recipes/rootfs/etc/nginx/servers/ingress.conf +++ b/tandoor_recipes/rootfs/etc/nginx/servers/ingress.conf @@ -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/;