Rate limiting is configured via theDocumentation Index
Fetch the complete documentation index at: https://docs.draskencloud.com/llms.txt
Use this file to discover all available pages before exploring further.
rate_limit field in any policy. It applies after authentication and before proxying.
Basic Configuration
Fields
| Field | Default | Description |
|---|---|---|
enabled | false | Enable rate limiting |
requests | — | Maximum requests allowed per window |
window_seconds | — | Window duration in seconds |
algorithm | fixed_window | Algorithm to use (see below) |
Algorithms
| Algorithm | Description |
|---|---|
fixed_window | Resets the counter at fixed intervals. Fast, simple, but allows bursts at window boundaries |
sliding_window | Smooths out bursts by tracking a rolling time window |
token_bucket | Allows short bursts up to a capacity, then enforces a steady refill rate |
Applying at Different Levels
App-level (applies to all requests)
Endpoint-level override (stricter on a specific route)
Global Rate Limit
A global default can be set via environment variables:Per-IP Rate Limiting
Enable per-IP rate limiting globally:GATEWAY_TRUSTED_PROXY_IPS when behind a load balancer so the real client IP is extracted from X-Forwarded-For.