Skip to content

Commit

Permalink
higher rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
janoside committed Aug 12, 2024
1 parent e484230 commit dc1e22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ expressApp.use(config.baseUrl, express.static(path.join(__dirname, 'public'), {

// https://www.npmjs.com/package/express-rate-limit
const rateLimitWindowMinutes = 15;
const rateLimitWindowMaxRequests = 10;
const rateLimitWindowMaxRequests = 200;
const rateLimiter = rateLimit({
windowMs: rateLimitWindowMinutes * 60 * 1000, // 15 minutes
limit: rateLimitWindowMaxRequests, // Limit each IP to 100 requests per `window` (here, per 15 minutes).
Expand Down

0 comments on commit dc1e22e

Please sign in to comment.