Merge remote-tracking branch 'origin' into stripe-error

This commit is contained in:
Tuan Dang
2023-06-22 16:38:46 +07:00
15 changed files with 777 additions and 278 deletions

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) => {