Skip to content

Commit

Permalink
update rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Jan 27, 2024
1 parent b8a6f5d commit 6ecd289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/server/config/rateLimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
};

0 comments on commit 6ecd289

Please sign in to comment.