feat(legacyHeaders): update ratelimit config

This commit is contained in:
Ritesh Ghosh
2023-09-10 20:15:39 +05:30
parent 27847e980c
commit f8f2883f72
+4 -4
View File
@@ -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",
});