You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -463,6 +463,10 @@ For request-id validation, AsyncLocalStorage propagation, structured logging, an
463
463
|`RATE_LIMIT_WINDOW_MS`| No |`60000`| Token-bucket refill window for `RATE_LIMIT_MAX_REQUESTS` (ms) |
464
464
|`RATE_LIMIT_STORE`| No |`memory`|`memory` or `postgres`. Use `postgres` to share bucket state across multiple gateway instances |
465
465
|`RATE_LIMIT_PG_TABLE`| No |`gateway_rate_limit_buckets`| Table name used when `RATE_LIMIT_STORE=postgres` (auto-created) |
466
+
|`RATE_LIMIT_OUTAGE_MODE`| No |`fail-closed`| Distributed-store outage policy: reject protected requests or use the bounded local fallback (`fallback`) |
467
+
|`RATE_LIMIT_FALLBACK_MAX_REQUESTS`| No |`10`| Maximum requests per key during fallback mode; never exceeds the distributed request policy |
468
+
|`RATE_LIMIT_FALLBACK_WINDOW_MS`| No |`60000`| Fallback window length in milliseconds |
469
+
|`RATE_LIMIT_FALLBACK_MAX_BUCKETS`| No |`10000`| Hard cap on local fallback keys; oldest keys are evicted during an outage |
466
470
|`QUOTA_RATE_LIMIT_CAPACITY`| No |`60`| Token-bucket burst capacity for all `/api/quotas` endpoints (per user / IP) |
467
471
|`QUOTA_RATE_LIMIT_REFILL_RATE`| No |`1`| Tokens added per second to each `/api/quotas` bucket; governs steady-state request rate |
468
472
|`CORS_ALLOWED_ORIGINS`| No |`http://localhost:5173`| Comma-separated allowed origins |
0 commit comments