Skip to content

Commit

Permalink
Adjust app-wide rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Jan 16, 2023
1 parent 1fbbbab commit b359fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/helpers/rateLimiter.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import rateLimit from 'express-rate-limit';

// 450 requests per 15 minutes
// 120 requests per minute
const apiLimiter = rateLimit({
windowMs: 15 * 60 * 1000,
max: 450,
windowMs: 60 * 1000,
max: 120,
standardHeaders: true,
legacyHeaders: false,
skip: (request) => {
Expand Down

0 comments on commit b359fb5

Please sign in to comment.