Skip to content

Commit

Permalink
Tweaked throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
mwinteringham committed Mar 1, 2023
1 parent c648389 commit e0a7653
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 @@ -11,7 +11,7 @@ const routes = require('./routes/index');
const app = express();

const limiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
windowMs: 10 * 60 * 1000, // 15 minutes
max: 200, // Limit each IP to 100 requests per `window` (here, per 15 minutes)
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
Expand Down

0 comments on commit e0a7653

Please sign in to comment.