diff options
| author | Ritesh Ghosh <[email protected]> | 2024-06-11 10:37:32 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-06-11 10:37:32 +0530 |
| commit | 8d82f448963dcf54c75dc93ea572f104dffcc9fb (patch) | |
| tree | 04871e6c3d178f9b13a78743dcdc09d23f44b7ed /src/config | |
| parent | e8c3a16d60c64d43acc4aae746ee4cec2c7445a5 (diff) | |
| download | aniwatch-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.ts | 2 |
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) { |
