From e1a436e5ac4d254f6e58a1632b4defcf45d9f1d0 Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Thu, 24 Oct 2024 19:48:47 +0200 Subject: [PATCH] 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 d0571810..b018a592 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: " " }};