From 219083747bb09c4fbb344a1344a8491271150b5e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 28 Jun 2025 13:45:23 +0200 Subject: [PATCH] Update ingress.gtpl --- portainer/rootfs/etc/nginx/templates/ingress.gtpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portainer/rootfs/etc/nginx/templates/ingress.gtpl b/portainer/rootfs/etc/nginx/templates/ingress.gtpl index b523aa075..f82c349a6 100644 --- a/portainer/rootfs/etc/nginx/templates/ingress.gtpl +++ b/portainer/rootfs/etc/nginx/templates/ingress.gtpl @@ -12,8 +12,8 @@ server { proxy_connect_timeout 30m; proxy_send_timeout 30m; proxy_read_timeout 30m; - proxy_set_header Origin $http_origin; # Ensure the backend knows the correct host + proxy_set_header Origin $http_origin; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $http_host; } @@ -22,12 +22,12 @@ server { proxy_pass {{ .protocol }}://backend/api/websocket/; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - proxy_set_header Origin "$http_origin"; resolver 127.0.0.11 valid=180s; proxy_connect_timeout 30m; proxy_send_timeout 30m; proxy_read_timeout 30m; # Ensure the backend knows the correct host + proxy_set_header Origin $http_origin; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $http_host; }