Update for pull request

This commit is contained in:
Tanya Byrne
2020-08-19 20:14:16 +01:00
parent 1124e70a54
commit 7b77a9d7a1
3 changed files with 26 additions and 40 deletions

View File

@@ -26,18 +26,19 @@ const defaults = {
STORAGE_LOCAL_ROOT: './uploads',
},
redisServer: {
REDIS_HOST: '127.0.0.1',
REDIS_PORT: '6379',
REDIS_PASSWORD: null,
SREDIS_HOST: '127.0.0.1',
SREDIS_PORT: '6379',
SREDIS_PASSWORD: null,
},
rateLimits: {
RATE_LIMIT_TYPE: 'redis',
CONSUMED_POINTS_LIMIT: 5,
CONSUMED_RESET_DURATION: 1,
EXEC_EVENLY: true,
BLOCK_POINT_DURATION: 0,
INMEMORY_BLOCK_CONSUMED: 200,
INMEMEMORY_BLOCK_DURATION: 30,
REDIS_POINTS: 5,
REDIS_EXEC_EVENLY: true,
REDIS_BLOCK_DURATION: 0,
REDIS_INMEMORY_BLOCK_ON_CONSUMED: 200,
REDIS_INMEMEMORY_BLOCK_DURATION: 30,
},
security: {
KEY: uuidv4(),