Top

Setting Nginx Rate Limiting

Nov 10, 2021 | 1346 views

#Web-frontend


Two-Stage Rate Limiting

limit_req_zone $binary_remote_addr zone=ip:10m rate=5r/s;

server {
    listen 80;
    location / {
        limit_req zone=ip burst=12 delay=8;
        proxy_pass http://website;
    }
}

Refer to Rate Limiting with NGINX and NGINX Plus 


Leave a comment

0 comments