From 0cd1ee9d891a5feb1384751149dd56f401f3a348 Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 22 Feb 2023 13:17:29 +0100 Subject: [PATCH] increase rate limit max requests per minutes --- server/api/limiter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/limiter.js b/server/api/limiter.js index 67eddd5b..f888bed5 100644 --- a/server/api/limiter.js +++ b/server/api/limiter.js @@ -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) } })),