update rate limits

This commit is contained in:
Maidul Islam
2024-01-27 18:38:57 -05:00
parent b8a6f5dc54
commit 6ecd289e6c

View File

@@ -11,7 +11,7 @@ export const globalRateLimiterCfg = (): RateLimitPluginOptions => {
return {
timeWindow: 60 * 1000,
max: 400,
max: 650,
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: 300,
max: 650,
keyGenerator: (req) => req.realIp
};
export const passwordRateLimit: RateLimitOptions = {
timeWindow: 60 * 1000,
max: 300,
max: 650,
keyGenerator: (req) => req.realIp
};