From 8bc08371a0f0d7009f540c0590a4718f1c58a5e1 Mon Sep 17 00:00:00 2001 From: PhillipPhanhthourath Date: Mon, 30 Sep 2024 16:56:02 -0400 Subject: [PATCH] scale down --- common/src/rateLimit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/rateLimit.ts b/common/src/rateLimit.ts index a20020ae..67788154 100644 --- a/common/src/rateLimit.ts +++ b/common/src/rateLimit.ts @@ -21,7 +21,7 @@ export const rateLimiter = () => { if (config.common.production) { return rateLimit({ windowMs: 2 * 60 * 1000, // 2 minutes - max: 10000, // Limit each IP to 1000 requests per window + max: 1000, // Limit each IP to 1000 requests per window standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers legacyHeaders: false, // Disable the `X-RateLimit-*` headers message: {