ansible-role-nginx/files/request_limits.conf

8 lines
364 B
Text

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