Merge pull request #2941 from jzelinskie/reduce-rate-limit-simple
nginx: rate limit 1r/s
This commit is contained in:
commit
e06a83faf9
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ map $http_authorization $registry_bucket {
|
|||
default $http_authorization;
|
||||
}
|
||||
|
||||
limit_req_zone $proxy_protocol_addr zone=verbs:10m rate=2r/s;
|
||||
limit_req_zone $registry_bucket zone=repositories:10m rate=2r/s;
|
||||
limit_req_zone $proxy_protocol_addr zone=verbs:10m rate=1r/s;
|
||||
limit_req_zone $registry_bucket zone=repositories:10m rate=1r/s;
|
||||
limit_req_status 429;
|
||||
limit_req_log_level warn;
|
||||
|
|
Reference in a new issue