瀏覽代碼

Fixed issue where the HTTP2 support was always enabled in nginx config, no matter what the user configured.

Jocelyn Le Sage 2 年之前
父節點
當前提交
ccf9cce825
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      backend/templates/_listen.conf

+ 2 - 2
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 %}