From 1980f802fa06887c70f975b393f78adf91f604de Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 27 Jan 2024 19:05:17 -0500 Subject: [PATCH] update rate limits --- backend/src/server/config/rateLimiter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/server/config/rateLimiter.ts b/backend/src/server/config/rateLimiter.ts index 297977e4f..7982cff63 100644 --- a/backend/src/server/config/rateLimiter.ts +++ b/backend/src/server/config/rateLimiter.ts @@ -11,7 +11,7 @@ export const globalRateLimiterCfg = (): RateLimitPluginOptions => { return { timeWindow: 60 * 1000, - max: 650, + max: 600, redis, allowList: (req) => req.url === "/healthcheck" || req.url === "/api/status", keyGenerator: (req) => req.realIp @@ -20,12 +20,12 @@ export const globalRateLimiterCfg = (): RateLimitPluginOptions => { export const authRateLimit: RateLimitOptions = { timeWindow: 60 * 1000, - max: 650, + max: 600, keyGenerator: (req) => req.realIp }; export const passwordRateLimit: RateLimitOptions = { timeWindow: 60 * 1000, - max: 650, + max: 600, keyGenerator: (req) => req.realIp };