nginx: enable request delay, bump up to 30 requests per address
This commit is contained in:
parent
1884414154
commit
7cf341f4e1
@ -15,7 +15,7 @@ http {
|
||||
default_type application/octet-stream;
|
||||
|
||||
|
||||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=2r/s;
|
||||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=30r/s;
|
||||
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
|
||||
@ -47,7 +47,7 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
limit_req zone=req_limit_per_ip burst=5 nodelay;
|
||||
limit_req zone=req_limit_per_ip burst=5;
|
||||
limit_conn conn_limit_per_ip 30;
|
||||
|
||||
proxy_pass http://app;
|
||||
|
||||
@ -10,7 +10,7 @@ server {
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
location / {
|
||||
limit_req zone=req_limit_per_ip burst=5 nodelay;
|
||||
limit_req zone=req_limit_per_ip burst=5;
|
||||
limit_conn conn_limit_per_ip 30;
|
||||
|
||||
proxy_pass http://app;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user