mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Support endpoints and masterName in redis config
This commit is contained in:
parent
e5cf856ddf
commit
40b7da8edb
1 changed files with 2 additions and 2 deletions
|
@ -113,8 +113,8 @@ module.exports =
|
||||||
rclient = new Redis.Cluster(config.cluster)
|
rclient = new Redis.Cluster(config.cluster)
|
||||||
driver = "ioredis"
|
driver = "ioredis"
|
||||||
else
|
else
|
||||||
{host, port, password} = config
|
{host, port, password, endpoints, masterName} = config
|
||||||
rclient = require("redis-sharelatex").createClient({host, port, password})
|
rclient = require("redis-sharelatex").createClient({host, port, password, endpoints, masterName})
|
||||||
driver = "redis"
|
driver = "redis"
|
||||||
return {
|
return {
|
||||||
rclient: rclient
|
rclient: rclient
|
||||||
|
|
Loading…
Reference in a new issue