Parcourir la source

Merge pull request #3377 from jlesage/http2-support-fix

Fixed issue where the HTTP2 support was always enabled in nginx config
jc21 il y a 1 an
Parent
commit
965873adc5
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      backend/templates/_listen.conf

+ 2 - 2
backend/templates/_listen.conf

@@ -5,9 +5,9 @@
   #listen [::]:80;
   #listen [::]:80;
 {% endif %}
 {% endif %}
 {% if certificate -%}
 {% 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 -%}
 {% if ipv6 -%}
-  listen [::]:443 ssl{% if http2_support %} http2{% endif %};
+  listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
 {% else -%}
 {% else -%}
   #listen [::]:443;
   #listen [::]:443;
 {% endif %}
 {% endif %}