nginx: create proxy-server-base.conf w/ rate limit
This commit is contained in:
parent
64bea5387b
commit
b5f7777fd7
3 changed files with 80 additions and 13 deletions
|
@ -21,8 +21,6 @@ proxy_set_header Transfer-Encoding $http_transfer_encoding;
|
|||
|
||||
location / {
|
||||
proxy_pass http://web_app_server;
|
||||
|
||||
#limit_req zone=webapp burst=10 nodelay;
|
||||
}
|
||||
|
||||
location /realtime {
|
||||
|
@ -41,10 +39,6 @@ location /v1/ {
|
|||
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
|
||||
|
||||
client_max_body_size 20G;
|
||||
|
||||
if ($ratelimit) {
|
||||
limit_req zone=api burst=5 nodelay;
|
||||
}
|
||||
}
|
||||
|
||||
location /c1/ {
|
||||
|
@ -55,10 +49,6 @@ location /c1/ {
|
|||
proxy_pass http://verbs_app_server;
|
||||
proxy_read_timeout 2000;
|
||||
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
|
||||
|
||||
if ($ratelimit) {
|
||||
limit_req zone=api burst=5 nodelay;
|
||||
}
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
|
|
Reference in a new issue