Skip to content

Commit 02ed29e

Browse files
committed
Increase rate limits: 500 req/15min, 200 uploads/hour
1 parent fa3f838 commit 02ed29e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/keystone.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default withAuth(config({
7878
// Rate limiting
7979
const apiLimiter = rateLimit({
8080
windowMs: 15 * 60 * 1000, // 15 minutes
81-
max: 100, // 100 requests per 15 min window
81+
max: 500, // 500 requests per 15 min window
8282
standardHeaders: true,
8383
legacyHeaders: false,
8484
message: { error: 'Too many requests, please try again later.' },
@@ -87,7 +87,7 @@ export default withAuth(config({
8787

8888
const uploadLimiter = rateLimit({
8989
windowMs: 60 * 60 * 1000, // 1 hour
90-
max: 60, // 60 uploads per hour
90+
max: 200, // 200 uploads per hour
9191
standardHeaders: true,
9292
legacyHeaders: false,
9393
message: { error: 'Upload limit reached. Please try again later.' },

0 commit comments

Comments
 (0)