ansible-role-nginx/files/request_limits.conf
2023-03-11 18:50:34 +01:00

8 lines
361 B
Text

# Managed by Ansible
limit_req_zone $binary_remote_addr zone=req_ip_one:10m rate=10r/s;
limit_req_zone $binary_remote_addr zone=req_ip_two:10m rate=1r/s;
limit_req_zone $server_name zone=req_server_one:10m rate=10r/s;
limit_req_zone $server_name zone=req_server_two:10m rate=1r/s;
limit_conn_zone $binary_remote_addr zone=con_ip_one:10m;
limit_req_status 444;