|
@@ -34,8 +34,9 @@ http {
|
|
# if rate limits are exceeded, clients will receive a 503 answer (try again later)
|
|
# if rate limits are exceeded, clients will receive a 503 answer (try again later)
|
|
# rate limits are exceeded when the 'leaky bucket' is full
|
|
# rate limits are exceeded when the 'leaky bucket' is full
|
|
|
|
|
|
- # set up one bucket per remote ip for (costly) API access
|
|
|
|
|
|
+ # set up one bucket per remote ip for different types of (costly) API access
|
|
limit_req_zone $binary_remote_addr zone=perip-api:100m rate=30r/s;
|
|
limit_req_zone $binary_remote_addr zone=perip-api:100m rate=30r/s;
|
|
|
|
+ limit_req_zone $binary_remote_addr zone=perip-dyndns:100m rate=4r/m;
|
|
|
|
|
|
# If limit_req directives are defined here, they apply to all servers that don't have their own ones
|
|
# If limit_req directives are defined here, they apply to all servers that don't have their own ones
|
|
#
|
|
#
|