nginx #23
This commit is contained in:
11
nginx.conf
11
nginx.conf
@ -40,6 +40,11 @@ http {
|
||||
limit_req_zone $binary_remote_addr zone=addr_req:10m rate=100r/s;
|
||||
limit_req_zone $h1_addr zone=h1_req:10m rate=10r/m;
|
||||
|
||||
limit_conn h1_conn 10;
|
||||
limit_req zone=h1_req burst=5 nodelay;
|
||||
limit_conn addr_conn 100;
|
||||
limit_req zone=addr_req burst=20 nodelay;
|
||||
|
||||
types {
|
||||
text/html html;
|
||||
text/css css;
|
||||
@ -58,12 +63,6 @@ http {
|
||||
listen 80;
|
||||
server_name ismist.cn localhost;
|
||||
|
||||
limit_conn h1_conn 10;
|
||||
limit_req zone=h1_req burst=5 nodelay;
|
||||
|
||||
limit_conn addr_conn 100;
|
||||
limit_req zone=addr_req burst=20 nodelay;
|
||||
|
||||
root ui;
|
||||
|
||||
location = / {
|
||||
|
@ -42,6 +42,8 @@ http {
|
||||
|
||||
limit_conn h1_conn 10;
|
||||
limit_req zone=h1_req burst=5 nodelay;
|
||||
limit_conn addr_conn 100;
|
||||
limit_req zone=addr_req burst=20 nodelay;
|
||||
|
||||
types {
|
||||
text/html html;
|
||||
@ -82,9 +84,6 @@ http {
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
|
||||
limit_conn addr_conn 100;
|
||||
limit_req zone=addr_req burst=20 nodelay;
|
||||
|
||||
root ui;
|
||||
|
||||
location = / {
|
||||
|
Reference in New Issue
Block a user