fix: raise upload rate limit from 10 to 30 per minute
This commit is contained in:
@@ -32,7 +32,7 @@ export async function uploadRoutes(app: FastifyInstance): Promise<void> {
|
|||||||
preHandler: authenticate,
|
preHandler: authenticate,
|
||||||
config: {
|
config: {
|
||||||
rateLimit: {
|
rateLimit: {
|
||||||
max: 10,
|
max: 30,
|
||||||
timeWindow: '1 minute',
|
timeWindow: '1 minute',
|
||||||
keyGenerator: (request: any) => (request as any).userId || request.ip,
|
keyGenerator: (request: any) => (request as any).userId || request.ip,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user