aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-09-10 20:15:39 +0530
committerRitesh Ghosh <[email protected]>2023-09-10 20:15:39 +0530
commitf8f2883f72136ebcb95d84f9c182bd03a7ad80fe (patch)
tree3357ea358eabdf490de4554483164ef850fa924e /src/config
parent27847e980c612337936fbf1f9d2f14cb6c8c4f64 (diff)
downloadaniwatch-api-f8f2883f72136ebcb95d84f9c182bd03a7ad80fe.tar.xz
aniwatch-api-f8f2883f72136ebcb95d84f9c182bd03a7ad80fe.zip
feat(legacyHeaders): update `ratelimit` config
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ratelimit.ts8
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",
});