diff options
| author | Ritesh Ghosh <[email protected]> | 2023-09-10 23:45:13 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-09-10 23:45:13 +0530 |
| commit | 6e11137ce2d5bd3b35beb7b56904abc82b2f6f18 (patch) | |
| tree | e4b2ec7dd54f14854c902a98de5ce4e70fd2d4be /src/config | |
| parent | 828c651b2fe966b470b862f41f7c7f2738a21e6b (diff) | |
| download | aniwatch-api-6e11137ce2d5bd3b35beb7b56904abc82b2f6f18.tar.xz aniwatch-api-6e11137ce2d5bd3b35beb7b56904abc82b2f6f18.zip | |
perf(rateLimit): increased `windowMs` time
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/ratelimit.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ratelimit.ts b/src/config/ratelimit.ts index 1479482..9bf70c2 100644 --- a/src/config/ratelimit.ts +++ b/src/config/ratelimit.ts @@ -1,7 +1,7 @@ import { rateLimit } from "express-rate-limit"; export const ratelimit = rateLimit({ - windowMs: 10 * 60 * 1000, + windowMs: 30 * 60 * 1000, max: 70, legacyHeaders: true, standardHeaders: "draft-7", |
