mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 08:17:26 +01:00
feat: add config for rate_limit
This commit is contained in:
1 parent
f22c1ef4f0
commit
30bfae9785
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ export default async function start() {
|
||||
sendCommand: (...args: string[]) => redisClient.sendCommand(args),
|
||||
}),
|
||||
windowMs: 15 * 60 * 1000, // 15 minutes
|
||||
max: 1000, // limit each IP
|
||||
max: config.RATE_LIMIT, // limit each IP
|
||||
standardHeaders: true,
|
||||
legacyHeaders: false,
|
||||
// delayMs: 0, // disable delaying - full speed until the max limit is reached
|
||||
|
||||
Reference in new issue
Block a user