From 72e18ac7dd45731415e282e7379a6dc398584e22 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 23 Sep 2023 22:10:17 +0200 Subject: [PATCH] fix: tweak rate limiter parameters --- src/routes/profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/profile.js b/src/routes/profile.js index 9e15a1a..f03e2c4 100644 --- a/src/routes/profile.js +++ b/src/routes/profile.js @@ -44,8 +44,8 @@ let profileRateLimiter = (req, res, next) => { if (process.env.ENABLE_EXPERIMENTAL_RATE_LIMITER) { profileRateLimiter = rateLimit({ - windowMs: 1000, - limit: 3, + windowMs: 5000, + limit: 20, standardHeaders: 'draft-7', legacyHeaders: false, handler: (req, res, next, options) => {