feat: limit login attempts and request sizes

This commit is contained in:
2026-11-30 16:36:14 +03:00
parent c7a7ffaffe
commit bdc0755d2b
4 changed files with 50 additions and 3 deletions
+5
View File
@@ -34,6 +34,11 @@ resolvers docker
frontend public
bind :8443 ssl crt /run/tls/ingress.pem
stick-table type ip size 100k expire 10s store http_req_rate(10s)
acl login path -i /api/v1/auth/sessions
http-request track-sc0 src if METH_POST login
http-request del-header X-Lab7-Login-Limited
http-request set-header X-Lab7-Login-Limited 1 if METH_POST login { sc_http_req_rate(0) gt 20 }
default_backend api
frontend local-health