From f8f2883f72136ebcb95d84f9c182bd03a7ad80fe Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 10 Sep 2023 20:15:39 +0530 Subject: feat(legacyHeaders): update `ratelimit` config --- src/config/ratelimit.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/config/ratelimit.ts b/src/config/ratelimit.ts index bc05f37..1479482 100644 --- a/src/config/ratelimit.ts +++ b/src/config/ratelimit.ts @@ -1,9 +1,9 @@ import { rateLimit } from "express-rate-limit"; export const ratelimit = rateLimit({ - windowMs: 60 * 1000, - max: 10, - legacyHeaders: false, - standardHeaders: true, + windowMs: 10 * 60 * 1000, + max: 70, + legacyHeaders: true, + standardHeaders: "draft-7", message: "Too many API requests, try again later", }); -- cgit v1.2.3