nginx: rate limit 1r/s

This reduces our rate limiting down to to 1 request per second.
This commit is contained in:
Jimmy Zelinskie 2017-12-12 16:39:45 -05:00
parent 44c77b4cbb
commit e36bf25a5e

View file

@ -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;