forked from Mirrors/keyoxide-web
fix: tweak rate limiter parameters
This commit is contained in:
parent
cd629fabb9
commit
72e18ac7dd
1 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue