increase limit

This commit is contained in:
Maidul Islam
2023-06-22 00:40:45 -04:00
parent afd0c6de08
commit b1f4e17aaf

View File

@ -10,7 +10,7 @@ export const apiLimiter = rateLimit({
// errorHandler: console.error.bind(null, 'rate-limit-mongo')
// }),
windowMs: 60 * 1000,
max: 240,
max: 350,
standardHeaders: true,
legacyHeaders: false,
skip: (request) => {
@ -30,7 +30,7 @@ const authLimit = rateLimit({
// collectionName: "expressRateRecords-authLimit",
// }),
windowMs: 60 * 1000,
max: 10,
max: 100,
standardHeaders: true,
legacyHeaders: false,
keyGenerator: (req, res) => {