nginx: remove limits
This commit is contained in:
parent
a067039351
commit
eb63185daa
@ -15,13 +15,6 @@ http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
|
||||
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:20m;
|
||||
limit_conn_status 429;
|
||||
|
||||
limit_req_zone $binary_remote_addr zone=req_limit_page:5m rate=1r/s;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
@ -22,11 +22,6 @@ server {
|
||||
listen 80;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
|
||||
limit_req zone=req_limit_per_ip burst=30;
|
||||
limit_conn conn_limit_per_ip 30;
|
||||
|
||||
|
||||
error_page 401 /login;
|
||||
|
||||
|
||||
@ -51,8 +46,6 @@ server {
|
||||
}
|
||||
|
||||
location = / {
|
||||
limit_req zone=req_limit_page nodelay;
|
||||
|
||||
proxy_pass http://app;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
||||
@ -9,9 +9,6 @@ server {
|
||||
listen 80;
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
limit_req zone=req_limit_per_ip burst=30;
|
||||
limit_conn conn_limit_per_ip 30;
|
||||
|
||||
location / {
|
||||
proxy_pass http://app;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user