mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: increased ratelimit
This commit is contained in:
parent
be315ec9ab
commit
7fc87e6418
@ -8,7 +8,7 @@ import { GlobalRatelimitIgnore } from '@utils/Constants'
|
|||||||
|
|
||||||
const limiter = rateLimit({
|
const limiter = rateLimit({
|
||||||
windowMs: 60 * 1000,
|
windowMs: 60 * 1000,
|
||||||
max: 120,
|
max: 180,
|
||||||
statusCode: 429,
|
statusCode: 429,
|
||||||
handler: (_req, res) => ResponseWrapper(res, { code: 429 }),
|
handler: (_req, res) => ResponseWrapper(res, { code: 429 }),
|
||||||
keyGenerator: (req) => req.headers['x-forwarded-for'] as string,
|
keyGenerator: (req) => req.headers['x-forwarded-for'] as string,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user