From 4c74f5103ca4d47958e9df28a6c5f9be00280c08 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 6 May 2021 14:59:18 +0200 Subject: [PATCH] Update ingress.gtpl --- portainer/rootfs/etc/nginx/templates/ingress.gtpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/portainer/rootfs/etc/nginx/templates/ingress.gtpl b/portainer/rootfs/etc/nginx/templates/ingress.gtpl index 029ec1ad7..8593aee22 100644 --- a/portainer/rootfs/etc/nginx/templates/ingress.gtpl +++ b/portainer/rootfs/etc/nginx/templates/ingress.gtpl @@ -2,15 +2,21 @@ server { listen {{ .interface }}:{{ .port }} default_server; include /etc/nginx/includes/server_params.conf; include /etc/nginx/includes/proxy_params.conf; + include /etc/nginx/includes/ssl_params.conf; + ssl_certificate /ssl/{{ .certfile }}; + ssl_certificate_key /ssl/{{ .keyfile }}; client_max_body_size 0; location / { proxy_pass {{ .protocol }}://backend/; resolver 127.0.0.11 valid=30s; + proxy_set_header Connection ""; } 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=30s; } }