fix: tweak rate limiter parameters

This commit is contained in:
Yarmo Mackenbach 2023-09-23 22:10:17 +02:00
parent cd629fabb9
commit 72e18ac7dd
No known key found for this signature in database
GPG key ID: 3C57D093219103A3

View file

@ -44,8 +44,8 @@ let profileRateLimiter = (req, res, next) => {
if (process.env.ENABLE_EXPERIMENTAL_RATE_LIMITER) { if (process.env.ENABLE_EXPERIMENTAL_RATE_LIMITER) {
profileRateLimiter = rateLimit({ profileRateLimiter = rateLimit({
windowMs: 1000, windowMs: 5000,
limit: 3, limit: 20,
standardHeaders: 'draft-7', standardHeaders: 'draft-7',
legacyHeaders: false, legacyHeaders: false,
handler: (req, res, next, options) => { handler: (req, res, next, options) => {