diff --git a/README.md b/README.md index 702846b..693076d 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,10 @@ The following zones are available: | Zone name | Filter | Limit | |--|--|--| -| `req_ip_one` | IP address | 30r/m | -| `req_ip_two` | IP address | 15r/m | -| `req_server_one` | Domain | 30r/m | -| `req_server_two` | Domain | 15r/m | +| `req_ip_one` | IP address | 10r/s | +| `req_ip_two` | IP address | 1r/s | +| `req_server_one` | Domain | 10r/s | +| `req_server_two` | Domain | 1r/s | ### Limiting the Number of Connections diff --git a/files/request_limits.conf b/files/request_limits.conf index 464e182..d737753 100644 --- a/files/request_limits.conf +++ b/files/request_limits.conf @@ -1,8 +1,8 @@ # 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_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;