18 lines
441 B
Plaintext
18 lines
441 B
Plaintext
# Slow DDOS Protection
|
|
|
|
client_body_timeout 10;
|
|
client_header_timeout 10;
|
|
keepalive_timeout 5 5;
|
|
send_timeout 10;
|
|
|
|
|
|
# DDOS Protection
|
|
|
|
# Maximum request per IP // 100 per seconde
|
|
limit_req_zone $binary_remote_addr zone=flood:10m rate=100r/s;
|
|
limit_req zone=flood burst=100 nodelay;
|
|
|
|
# Maximum Connection per IP // 100 per seconde
|
|
limit_conn_zone $binary_remote_addr zone=ddos:10m;
|
|
limit_conn ddos 100;
|