From 82811ebafd0af55ddefb435449bd0c8cad62ecb7 Mon Sep 17 00:00:00 2001 From: Yana De Pauw Date: Mon, 16 Nov 2020 09:34:34 +0100 Subject: [PATCH] 74348: Add comments and update rate limit config --- src/environments/environment.common.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/environments/environment.common.ts b/src/environments/environment.common.ts index 7e3d7c6543..a7c8b2a5ff 100644 --- a/src/environments/environment.common.ts +++ b/src/environments/environment.common.ts @@ -13,9 +13,10 @@ export const environment: GlobalConfig = { port: 4000, // NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript nameSpace: '/', + // The rateLimiter settings limit each IP to a "max" of 120 requests per "windowMs" (1 minute). rateLimiter: { - windowMs: 1 * 60 * 1000, - max: 100 + windowMs: 1 * 60 * 1000, // 1 minute + max: 120 // limit each IP to 120 requests per windowMs } }, // The REST API server settings.