Change limit defaults

This commit is contained in:
phil 2023-03-11 18:48:54 +01:00
parent 8d9c6b62d4
commit e92ef486a3
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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;