nginx: burst=5 for API calls
This means that requests are delayed until the client reaches the burst rate and then they will receive the 429.
This commit is contained in:
parent
34ceb274c3
commit
7554c47a30
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ location /v1/repositories/ {
|
|||
proxy_read_timeout 2000;
|
||||
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
|
||||
|
||||
limit_req zone=repositories;
|
||||
limit_req zone=repositories burst=5;
|
||||
}
|
||||
|
||||
location /v1/ {
|
||||
|
@ -59,7 +59,7 @@ location /c1/ {
|
|||
proxy_pass http://verbs_app_server;
|
||||
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
|
||||
|
||||
limit_req zone=api;
|
||||
limit_req zone=api burst=5;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
|
|
Reference in a new issue