feat: updated ratelimit config

This commit is contained in:
Ritesh Ghosh
2023-09-10 19:36:34 +05:30
parent c724c70dce
commit 6ebee632d7
+2 -2
View File
@@ -1,8 +1,8 @@
import { rateLimit } from "express-rate-limit"; import { rateLimit } from "express-rate-limit";
export const ratelimit = rateLimit({ export const ratelimit = rateLimit({
windowMs: 10 * 60 * 1000, windowMs: 60 * 1000,
max: 100, max: 10,
legacyHeaders: false, legacyHeaders: false,
standardHeaders: true, standardHeaders: true,
message: "Too many API requests, try again later", message: "Too many API requests, try again later",