backup
This commit is contained in:
@@ -126,6 +126,8 @@ Per-IP rate limits applied to API endpoints.
|
||||
| `BANGUI_RATE_LIMIT_BLOCKLIST_IMPORT_PER_HOUR` | int | `10` | Max blocklist import requests per IP per hour. |
|
||||
| `BANGUI_RATE_LIMIT_CONFIG_UPDATE_PER_MINUTE` | int | `50` | Max config update requests per IP per minute. |
|
||||
|
||||
**Rate limit reset mechanism:** Each limit is applied per-client IP. To bypass the blocklist import rate limit in automated tests (E2E-4), send a unique `X-Forwarded-For` header with each import request — e.g., `X-Forwarded-For: 10.0.0.99`. The header is only honoured when the client IP falls within `BANGUI_TRUSTED_PROXIES`; otherwise the real client IP is used.
|
||||
|
||||
---
|
||||
|
||||
## Pagination & Display Limits
|
||||
|
||||
Reference in New Issue
Block a user