From a664e3f7b50ae280c5995197120c07b338ce4428 Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Wed, 16 Oct 2024 15:39:45 +0200 Subject: [PATCH 1/2] fix(backend): Replace deprecated http2 directive --- backend/templates/_listen.conf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index ad1c96ba03..d05718101a 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -5,9 +5,15 @@ #listen [::]:80; {% endif %} {% if certificate -%} - listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; -{% if ipv6 -%} - listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; + listen 443 ssl; + {% if http2_support == 1 or http2_support == true %} + http2; + {% endif %} +{% if ipv6 -%}/ + listen [::]:443 ssl; + {% if http2_support == 1 or http2_support == true %} + http2; + {% endif %} {% else -%} #listen [::]:443; {% endif %} From e1a436e5ac4d254f6e58a1632b4defcf45d9f1d0 Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Thu, 24 Oct 2024 19:48:47 +0200 Subject: [PATCH 2/2] fix(backend): Add suggestions from PR review --- backend/templates/_listen.conf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index d05718101a..b018a592c1 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -6,16 +6,13 @@ {% endif %} {% if certificate -%} listen 443 ssl; - {% if http2_support == 1 or http2_support == true %} - http2; - {% endif %} {% if ipv6 -%}/ listen [::]:443 ssl; - {% if http2_support == 1 or http2_support == true %} - http2; - {% endif %} {% else -%} #listen [::]:443; {% endif %} +{% endif %} +{% if http2_support == 1 or http2_support == true %} + http2 on; {% endif %} server_name {{ domain_names | join: " " }};