ConstDefault maximum number of requests per client per time window. The
server uses resolveRateLimitMax, which honours RATE_LIMIT_MAX.
Duration of the sliding rate-limit window.
Requests exempt from rate limiting: only the health, liveness, readiness and metrics probes, so orchestrators and scrapers are never throttled. There is deliberately no IP allow-list: behind a local reverse proxy every client would appear as the loopback address.
Redis/store key prefix for rate-limit counters.
Rate-limit headers to include in responses.
Include the X-RateLimit-Limit header.
Include the X-RateLimit-Remaining header.
Include the X-RateLimit-Reset header.
Include the Retry-After header.
Builds the JSON body returned when a client is rate-limited.
HTTP status code used by Fastify's error handler.
HTTP status code (kept for existing clients).
Error name.
Human-readable rate-limit explanation.
Timestamp when the error occurred (epoch ms).
Milliseconds until the rate-limit window resets.
Apply rate limiting to all routes.