feat: increased ratelimit

This commit is contained in:
wonderlandpark 2021-05-23 10:19:40 +09:00
parent be315ec9ab
commit 7fc87e6418

View File

@ -8,7 +8,7 @@ import { GlobalRatelimitIgnore } from '@utils/Constants'
const limiter = rateLimit({
windowMs: 60 * 1000,
max: 120,
max: 180,
statusCode: 429,
handler: (_req, res) => ResponseWrapper(res, { code: 429 }),
keyGenerator: (req) => req.headers['x-forwarded-for'] as string,