mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
put settings on all redis's
This commit is contained in:
parent
52014c851b
commit
397b65abf7
1 changed files with 3 additions and 2 deletions
|
@ -49,10 +49,10 @@ settings =
|
||||||
console.log "process.env['REDIS_CLUSTER_ENABLED']", process.env['REDIS_CLUSTER_ENABLED']
|
console.log "process.env['REDIS_CLUSTER_ENABLED']", process.env['REDIS_CLUSTER_ENABLED']
|
||||||
if process.env['REDIS_CLUSTER_ENABLED'] == "true"
|
if process.env['REDIS_CLUSTER_ENABLED'] == "true"
|
||||||
|
|
||||||
settings.redis.websessions.cluster = [
|
settings.redis.realtime.cluster = settings.redis.documentupdater.cluster = settings.redis.websessions.cluster = [
|
||||||
{ host: process.env["SL_LIN_STAG_REDIS_3_SERVICE_HOST"], port: "6379" }
|
{ host: process.env["SL_LIN_STAG_REDIS_3_SERVICE_HOST"], port: "6379" }
|
||||||
]
|
]
|
||||||
settings.redis.websessions.natMap = {
|
settings.redis.realtime.natMap = settings.redis.documentupdater.natMap = settings.redis.websessions.natMap = {
|
||||||
'192.168.201.24:6379': { host: process.env["SL_LIN_STAG_REDIS_0_SERVICE_HOST"], port: "6379" }
|
'192.168.201.24:6379': { host: process.env["SL_LIN_STAG_REDIS_0_SERVICE_HOST"], port: "6379" }
|
||||||
'192.168.195.231:6379': { host: process.env["SL_LIN_STAG_REDIS_1_SERVICE_HOST"], port: "6379" }
|
'192.168.195.231:6379': { host: process.env["SL_LIN_STAG_REDIS_1_SERVICE_HOST"], port: "6379" }
|
||||||
'192.168.223.53:6379': { host: process.env["SL_LIN_STAG_REDIS_2_SERVICE_HOST"], port: "6379" }
|
'192.168.223.53:6379': { host: process.env["SL_LIN_STAG_REDIS_2_SERVICE_HOST"], port: "6379" }
|
||||||
|
@ -62,5 +62,6 @@ if process.env['REDIS_CLUSTER_ENABLED'] == "true"
|
||||||
'192.168.220.59:6379': { host: process.env["SL_LIN_STAG_REDIS_6_SERVICE_HOST"], port: "6379" }
|
'192.168.220.59:6379': { host: process.env["SL_LIN_STAG_REDIS_6_SERVICE_HOST"], port: "6379" }
|
||||||
'192.168.129.122:6379': { host: process.env["SL_LIN_STAG_REDIS_7_SERVICE_HOST"], port: "6379" }
|
'192.168.129.122:6379': { host: process.env["SL_LIN_STAG_REDIS_7_SERVICE_HOST"], port: "6379" }
|
||||||
}
|
}
|
||||||
|
settings.redis.documentupdater.cluster
|
||||||
|
|
||||||
module.exports = settings
|
module.exports = settings
|
Loading…
Reference in a new issue