nginx: rate-limiting for /c1/

This commit is contained in:
Jimmy Zelinskie 2015-01-26 15:42:56 -05:00
parent f99025f123
commit 24365fb960
2 changed files with 3 additions and 0 deletions

View file

@ -62,6 +62,8 @@ location /c1/ {
proxy_pass http://verbs_app_server;
proxy_read_timeout 2000;
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
limit_req zone=api burst=5 nodelay;
}
location /static/ {

View file

@ -2,5 +2,6 @@
limit_req_zone $proxy_protocol_addr zone=webapp:10m rate=25r/s;
limit_req_zone $proxy_protocol_addr zone=repositories:10m rate=1r/s;
limit_req_zone $proxy_protocol_addr zone=api:10m rate=1r/s;
limit_req_status 429;
limit_req_log_level warn;