increase rate limit max requests per minutes

This commit is contained in:
lesion 2023-02-22 13:17:29 +01:00
parent b6dafc082e
commit 0cd1ee9d89
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -7,11 +7,11 @@ const instanceApiRateLimiter = {
DDOSProtectionApiRateLimiter: (process.env.NODE_ENV === 'test' ? next : rateLimit({
windowMs: 60 * 1000, // 1 minutes
max: 100, // Limit each IP to 100 requests per `window`
max: 150, // Limit each IP to 150 requests per `window`
standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
handler: (request, response, next, options) => {
log.warn(`DDOS protection api rate limiter: > 100req/minute/ip ${request.ip}`)
log.warn(`DDOS protection api rate limiter: > 150req/minute/ip ${request.ip}`)
return response.status(options.statusCode).send(options.message)
}
})),