NgixProxy_Pathfinder/nginx/snippets/rate_limit.conf

9 lines
335 B
Plaintext

# Rate Limit Zones
# Include this file in nginx.conf http block
# Smart rate limiting - IPs internos são ignorados ($limit_key = "")
limit_req_zone $limit_key zone=global_limit:20m rate=20r/s;
# Zona de Penalidade (Heavy Limit) - Para quem tem Score de Risco > 0
limit_req_zone $heavy_limit_key zone=punishment_limit:10m rate=1r/s;