From ccf9cce8251fdbac7e4d7f46befcc0a02d801c53 Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Sat, 9 Dec 2023 11:16:37 -0500 Subject: [PATCH] Fixed issue where the HTTP2 support was always enabled in nginx config, no matter what the user configured. --- backend/templates/_listen.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index 730f3a7c..ad1c96ba 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -5,9 +5,9 @@ #listen [::]:80; {% endif %} {% if certificate -%} - listen 443 ssl{% if http2_support %} http2{% endif %}; + listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; {% if ipv6 -%} - listen [::]:443 ssl{% if http2_support %} http2{% endif %}; + listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; {% else -%} #listen [::]:443; {% endif %}