From a297874ae0abb21f93669bcad07a63224f080998 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 20 Dec 2022 16:53:56 +0100 Subject: [PATCH] Update ingress.conf --- .../rootfs/etc/nginx/servers/ingress.conf | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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/;