diff options
| author | Ritesh Ghosh <[email protected]> | 2023-09-10 20:15:39 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-09-10 20:15:39 +0530 |
| commit | f8f2883f72136ebcb95d84f9c182bd03a7ad80fe (patch) | |
| tree | 3357ea358eabdf490de4554483164ef850fa924e /src | |
| parent | 27847e980c612337936fbf1f9d2f14cb6c8c4f64 (diff) | |
| download | aniwatch-api-f8f2883f72136ebcb95d84f9c182bd03a7ad80fe.tar.xz aniwatch-api-f8f2883f72136ebcb95d84f9c182bd03a7ad80fe.zip | |
feat(legacyHeaders): update `ratelimit` config
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/ratelimit.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/ratelimit.ts b/src/config/ratelimit.ts index bc05f37..1479482 100644 --- a/src/config/ratelimit.ts +++ b/src/config/ratelimit.ts @@ -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", }); |
