mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
api: remove duplicate defaults
This commit is contained in:
parent
40ff39d14b
commit
fb81c57324
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue