Skip to content

Commit

Permalink
change the defaults in the qhelp for missing-rate-limit to something …
Browse files Browse the repository at this point in the history
…more reasonable
  • Loading branch information
erik-krogh committed Aug 10, 2023
1 parent 4e954c2 commit 5ffce86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var app = express();
// set up rate limiter: maximum of five requests per minute
var RateLimit = require('express-rate-limit');
var limiter = RateLimit({
windowMs: 1*60*1000, // 1 minute
max: 5
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100, // max 100 requests per windowMs
});

// apply rate limiter to all requests
Expand Down

0 comments on commit 5ffce86

Please sign in to comment.