Skip to content

stack/erp5: rate limit clients on backend haproxy

Jérome Perrin requested to merge feat/erp5-haproxy-rate-limit into master

This supports defining rate limits as maximum number of matched requests over a period of time for the same client IP.

Requests are matched either by a regular expression on URL path or a response status code.

Once a client exceeded the rate limit, haproxy will reply with HTTP status code 429 ("Too Many Requests") until the expiration period configured on the rule has passed. Optionally, the responses can be made after the "tarpit" delay.

Edited by Jérome Perrin

Merge request reports