Skip to content

Commit 88c3ac8

Browse files
Rate Limit fix (#94)
1 parent 9703c12 commit 88c3ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/v5.4/apigateway.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ location {% if '{' not in path.path %}={% else %}~{% endif %} {% if declaration.
5757
{%- endfor -%}
5858

5959
{%- 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 %}
60+
{%- 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 %}
6161

6262
{% if rl.httpcode %}limit_req_status {{ rl.httpcode }};{% endif %}
6363
{%- endif -%}

0 commit comments

Comments
 (0)