From 75337addec24e449a5ad0f9875a577c4f16a44b1 Mon Sep 17 00:00:00 2001 From: tugytur <33746108+tugytur@users.noreply.github.com> Date: Wed, 16 Aug 2023 13:51:25 +0200 Subject: [PATCH] change enabled to enable --- templates/http/modules.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/http/modules.j2 b/templates/http/modules.j2 index 371c2b17..4acd7130 100644 --- a/templates/http/modules.j2 +++ b/templates/http/modules.j2 @@ -334,8 +334,8 @@ sub_filter_types {{ sub_filter['types'] if sub_filter['types'] is string else su {# NGINX HTTP v2 -- ngx_http_v2_module #} {% macro http2(http2, scope='http') %} {% if scope != 'location' %}{# The following scoped directives are not available in the 'location' context #} -{% if http2['enabled'] is defined and http2['enabled'] is boolean %} -http2 {{ http2['enabled'] | ternary('on', 'off') }}; +{% if http2['enable'] is defined and http2['enable'] is boolean %} +http2 {{ http2['enable'] | ternary('on', 'off') }}; {% endif %} {% if http2['body_preread_size'] is defined %} http2_body_preread_size {{ http2['body_preread_size'] }};