Increase API rate limit to 200 req/min (Turnstile errors were exhausting 60/min limit)
This commit is contained in:
parent
9f39f0b822
commit
6daf08982e
1 changed files with 2 additions and 2 deletions
|
|
@ -77,9 +77,9 @@ app.use(express.json({ limit: '10mb' }));
|
|||
// ============================================================
|
||||
// RATE LIMITING
|
||||
// ============================================================
|
||||
// General API: 60 req/min
|
||||
// General API: 200 req/min (increased — app makes many calls on login)
|
||||
app.use('/api/', rateLimit({
|
||||
windowMs: 60000, max: 60,
|
||||
windowMs: 60000, max: 200,
|
||||
message: { error: 'Too many requests' },
|
||||
standardHeaders: true, legacyHeaders: false
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue