8 lines
344 B
Plaintext
8 lines
344 B
Plaintext
# Rate Limiting Zones for GNX-WEB
|
|
# Add these lines to /etc/nginx/nginx.conf inside the http {} block
|
|
# Or include this file in /etc/nginx/nginx.conf with: include /etc/nginx/conf.d/rate-limit-zones.conf;
|
|
|
|
limit_req_zone $binary_remote_addr zone=api_limit:10m rate=10r/s;
|
|
limit_req_zone $binary_remote_addr zone=general_limit:10m rate=100r/s;
|
|
|