initial import
This commit is contained in:
parent
3ed58b0021
commit
4b70c0023c
48 changed files with 1540 additions and 0 deletions
14
etc/nginx/conf.d/security.conf
Normal file
14
etc/nginx/conf.d/security.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
# https://www.nginx.com/blog/rate-limiting-nginx/
|
||||
# https://nginx.org/en/docs/http/ngx_http_limit_req_module.html
|
||||
limit_req_zone $binary_remote_addr zone=normal:10m rate=20r/s;
|
||||
limit_req zone=normal burst=30 nodelay;
|
||||
limit_req_status 429;
|
||||
|
||||
# https://nginx.org/en/docs/http/ngx_http_core_module.html
|
||||
server_tokens off;
|
||||
keepalive_requests 100;
|
||||
keepalive_timeout 15s;
|
||||
client_body_timeout 20s;
|
||||
client_header_timeout 20s;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue