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 718bc9c commit 0b85e0bCopy full SHA for 0b85e0b
salt/haproxy/config/haproxy.cfg.jinja
@@ -130,7 +130,7 @@ frontend main
130
{%- if config.get('rate_limit') %}
131
# Rate limit config for {{ service }}
132
acl is_{{ service }} hdr(host) -i {% for domain in config.domains %}{{ domain }} {% endfor %}
133
- http-request deny deny_status 429 if is_{{ service }} { sc0_http_req_rate() gt {{ config.rate_limit }} }
+ http-request deny deny_status 429 if is_{{ service }} { sc_http_req_rate(0) gt {{ config.rate_limit }} }
134
{%- endif %}
135
{%- endfor %}
136
0 commit comments