mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove natmap from defaults config
This commit is contained in:
parent
b193045a2a
commit
2b1f67b6fa
1 changed files with 2 additions and 13 deletions
|
@ -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
|
Loading…
Reference in a new issue