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

Merge branch 'mailman-rate-limit' into 'master'

mailman: rate limit the uwsgi endpoint to 2 requests/sec

See merge request !760
parents cce88e99 4882c64b
No related branches found
No related tags found
1 merge request!760mailman: rate limit the uwsgi endpoint to 2 requests/sec
Pipeline #78289 passed
# limit general requests to 2 r/s to block DoS attempts.
limit_req_zone $binary_remote_addr zone=mailmanlimit:10m rate=2r/s;
limit_req_status 429;
# This is for POSTORIUS_TEMPLATE_BASE_URL and mailman_hyperkitty.Archiver's base_url.
server {
listen 8000;
......@@ -51,6 +56,7 @@ server {
}
location / {
limit_req zone=mailmanlimit burst=5 nodelay;
include /etc/nginx/uwsgi_params;
uwsgi_pass unix:/run/mailman-web/mailman-web.sock;
}
......
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