Skip to content
Snippets Groups Projects
Verified Commit e581c85f authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

archweb: limit to 10 requests / second

In reality the uwsgi endpoint gets hit with only 1 request on a normal
page load so 20 requests is way to lenient.
parent 0f892b1a
No related branches found
No related tags found
1 merge request!834archweb: tweak our rate limits
# limit rss requests to 1 r/m
limit_req_zone $binary_remote_addr zone=rsslimit:8m rate=1r/m;
# limit general requests to 20 r/s to block DoS attempts.
limit_req_zone $binary_remote_addr zone=archweblimit:10m rate=20r/s;
# limit general requests to 10 r/s to block DoS attempts.
limit_req_zone $binary_remote_addr zone=archweblimit:10m rate=10r/s;
limit_req_status 429;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment