From fb81c5732440beea8a66f67531c991a9db7f8b08 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 16 May 2024 13:58:28 +0600 Subject: [PATCH] api: remove duplicate defaults --- src/core/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/api.js b/src/core/api.js index f31665aa..686414af 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -23,7 +23,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { const apiLimiter = rateLimit({ windowMs: env.rateLimitWindow * 1000, - max: env.rateLimitMax || 20, + max: env.rateLimitMax, standardHeaders: true, legacyHeaders: false, keyGenerator: req => generateHmac(getIP(req), ipSalt), @@ -37,7 +37,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { const apiLimiterStream = rateLimit({ windowMs: env.rateLimitWindow * 1000, - max: env.rateLimitMax || 20, + max: env.rateLimitMax, standardHeaders: true, legacyHeaders: false, keyGenerator: req => generateHmac(getIP(req), ipSalt),