Skip to content

Commit 0b85e0b

Browse files
committed
fix: use new syntax
1 parent 718bc9c commit 0b85e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

salt/haproxy/config/haproxy.cfg.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ frontend main
130130
{%- if config.get('rate_limit') %}
131131
# Rate limit config for {{ service }}
132132
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 }} }
133+
http-request deny deny_status 429 if is_{{ service }} { sc_http_req_rate(0) gt {{ config.rate_limit }} }
134134
{%- endif %}
135135
{%- endfor %}
136136

0 commit comments

Comments
 (0)