remove natmap from defaults config

This commit is contained in:
Henry Oswald 2019-01-25 10:30:31 +00:00
parent b193045a2a
commit 2b1f67b6fa

View file

@ -50,17 +50,6 @@ settings =
forceDrainMsDelay: process.env['FORCE_DRAIN_MS_DELAY'] or false
console.log process.env['REDIS_CLUSTER_HOSTS'], process.env['REDIS_CLUSTER_NATMAP']
console.log typeof(process.env['REDIS_CLUSTER_HOSTS'])
if process.env['REDIS_CLUSTER_HOSTS']? or process.env['REDIS_CLUSTER_NATMAP']?
for redisKey in Object.keys(settings.redis)
if process.env['REDIS_CLUSTER_HOSTS']?
settings.redis[redisKey].cluster = JSON.parse(process.env['REDIS_CLUSTER_HOSTS'])
if process.env['REDIS_CLUSTER_NATMAP']?
settings.redis[redisKey].natMap = JSON.parse(process.env['REDIS_CLUSTER_NATMAP'])
console.log settings
# console.log settings.redis
module.exports = settings