aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2024-06-11 10:37:32 +0530
committerRitesh Ghosh <[email protected]>2024-06-11 10:37:32 +0530
commit8d82f448963dcf54c75dc93ea572f104dffcc9fb (patch)
tree04871e6c3d178f9b13a78743dcdc09d23f44b7ed /src/config
parente8c3a16d60c64d43acc4aae746ee4cec2c7445a5 (diff)
downloadaniwatch-api-8d82f448963dcf54c75dc93ea572f104dffcc9fb.tar.xz
aniwatch-api-8d82f448963dcf54c75dc93ea572f104dffcc9fb.zip
feat: update rate limit to 6 reqs every 30 mins
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ratelimit.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ratelimit.ts b/src/config/ratelimit.ts
index 67edfd8..c5add3f 100644
--- a/src/config/ratelimit.ts
+++ b/src/config/ratelimit.ts
@@ -6,7 +6,7 @@ config();
export const ratelimit = rateLimit({
windowMs: Number(process.env.WINDOWMS) || 30 * 60 * 1000,
- limit: Number(process.env.MAX) || 50,
+ limit: Number(process.env.MAX) || 6,
legacyHeaders: true,
standardHeaders: "draft-7",
handler: function (_, __, next) {