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:
Jimmy Zelinskie 2015-02-23 20:53:21 -05:00
parent 34ceb274c3
commit 7554c47a30

View file

@ -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/ {