From a664e3f7b50ae280c5995197120c07b338ce4428 Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Wed, 16 Oct 2024 15:39:45 +0200 Subject: [PATCH] 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 ad1c96ba..d0571810 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 %}