feat(legacyHeaders): update ratelimit config
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user