From 83c533e195675818d523773cc58a7c16c438db3b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 28 Jun 2025 21:03:11 +0200 Subject: [PATCH] Update ingress.gtpl @lmagyar https://github.com/alexbelgium/hassio-addons/issues/1877 --- .../rootfs/etc/nginx/templates/ingress.gtpl | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/portainer/rootfs/etc/nginx/templates/ingress.gtpl b/portainer/rootfs/etc/nginx/templates/ingress.gtpl index f82c349a6..f51f6d3d7 100644 --- a/portainer/rootfs/etc/nginx/templates/ingress.gtpl +++ b/portainer/rootfs/etc/nginx/templates/ingress.gtpl @@ -8,28 +8,14 @@ server { location / { proxy_pass {{ .protocol }}://backend/; resolver 127.0.0.11 valid=180s; - proxy_set_header Connection ""; - 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; -} + } location /api/websocket/ { proxy_pass {{ .protocol }}://backend/api/websocket/; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; 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; } } -