nginx: rename api rate limit bucket to verbs
This commit is contained in:
parent
258588b914
commit
2a826f52d4
2 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=api:10m rate=2r/s;
|
||||
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_status 429;
|
||||
limit_req_log_level warn;
|
||||
|
|
|
@ -57,7 +57,7 @@ location /c1/ {
|
|||
proxy_pass http://verbs_app_server;
|
||||
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
|
||||
|
||||
limit_req zone=api burst=10;
|
||||
limit_req zone=verbs burst=10;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
|
|
Reference in a new issue