From 07e973faf7cd3e46668c8f7b1ec9040dc3c203a1 Mon Sep 17 00:00:00 2001 From: jwklijnsma Date: Tue, 27 Feb 2024 11:32:57 +0100 Subject: [PATCH] fix error jenkins --- backend/templates/_listen.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index 0bb2d02d..15f0c865 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -10,11 +10,15 @@ {% endif %} {% endif %} {% if certificate -%} - listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; +{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%} + listen 444 ssl{% if http2_support %} http2{% endif %} proxy_protocol; {% if ipv6 -%} - listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; + listen [::]:444 ssl{% if http2_support %} http2{% endif %} proxy_protocol; +{% endif %} {% else -%} - #listen [::]:443; + listen 443 ssl{% if http2_support %} http2{% endif %}; +{% if ipv6 -%} + listen [::]:443 ssl{% if http2_support %} http2{% endif %}; {% endif %} {% endif %} {% endif %}