-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
Firstly, I find your project to be really useful. Thank you very much.
In the rate limiter, I'm wondering why the number 15 * 60
is multiplied by the ms parameter. It actually seems to enlarge the window size, resulting in the normal requests being blocked.
src/common/middleware/rateLimiter.ts
import type { Request } from "express";
import { rateLimit } from "express-rate-limit";
import { env } from "@/common/utils/envConfig";
const rateLimiter = rateLimit({
...
windowMs: 15 * 60 * env.COMMON_RATE_LIMIT_WINDOW_MS,
...
});
export default rateLimiter;
Metadata
Metadata
Assignees
Labels
No labels