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 9703c12 commit 88c3ac8Copy full SHA for 88c3ac8
templates/v5.4/apigateway.tmpl
@@ -57,7 +57,7 @@ location {% if '{' not in path.path %}={% else %}~{% endif %} {% if declaration.
57
{%- endfor -%}
58
59
{%- if enforceRL.toBeEnforced == True -%}
60
- {%- if rl.profile %}limit_req zone={{ rl.profile }}{% if rl.burst %} burst={{ rl.burst }}{% endif %}{% if rl.delay == 0 %} nodelay;{% else %} delay={{ rl.delay }};{% endif %}{% endif %}
+ {%- if rl.profile %}limit_req zone={{ rl.profile | replace(' ', '_') }}{% if rl.burst %} burst={{ rl.burst }}{% endif %}{% if rl.delay == 0 %} nodelay;{% else %} delay={{ rl.delay }};{% endif %}{% endif %}
61
62
{% if rl.httpcode %}limit_req_status {{ rl.httpcode }};{% endif %}
63
{%- endif -%}
0 commit comments