74348: Add comments and update rate limit config

This commit is contained in:
Yana De Pauw
2020-11-16 09:34:34 +01:00
parent 3a486f5117
commit 82811ebafd

View File

@@ -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.