We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b838a commit e3e1707Copy full SHA for e3e1707
templates/http/modules.j2
@@ -334,8 +334,8 @@ sub_filter_types {{ sub_filter['types'] if sub_filter['types'] is string else su
334
{# NGINX HTTP v2 -- ngx_http_v2_module #}
335
{% macro http2(http2, scope='http') %}
336
{% if scope != 'location' %}{# The following scoped directives are not available in the 'location' context #}
337
-{% if http2['enabled'] is defined and http2['enabled'] is boolean %}
338
-http2 {{ http2['enabled'] | ternary('on', 'off') }};
+{% if http2['enable'] is defined and http2['enable'] is boolean %}
+http2 {{ http2['enable'] | ternary('on', 'off') }};
339
{% endif %}
340
{% if http2['body_preread_size'] is defined %}
341
http2_body_preread_size {{ http2['body_preread_size'] }};
0 commit comments