From abdcb95a4af03762e059d4d148700e287a04b64e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 6 May 2021 14:45:00 +0200 Subject: [PATCH] Update ingress.gtpl --- portainer/rootfs/etc/nginx/templates/ingress.gtpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/portainer/rootfs/etc/nginx/templates/ingress.gtpl b/portainer/rootfs/etc/nginx/templates/ingress.gtpl index 9a8a95041..029ec1ad7 100644 --- a/portainer/rootfs/etc/nginx/templates/ingress.gtpl +++ b/portainer/rootfs/etc/nginx/templates/ingress.gtpl @@ -2,9 +2,15 @@ server { listen {{ .interface }}:{{ .port }} default_server; include /etc/nginx/includes/server_params.conf; include /etc/nginx/includes/proxy_params.conf; - + client_max_body_size 0; + location / { proxy_pass {{ .protocol }}://backend/; + resolver 127.0.0.11 valid=30s; + } + + location /api/websocket/ { + proxy_pass {{ .protocol }}://backend/api/websocket/; + resolver 127.0.0.11 valid=30s; } - }