mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
clarify purpose of redis client
This commit is contained in:
parent
41868ddda3
commit
de18231ef1
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,9 @@ redisSessionsSettings = Settings.redis.websessions or Settings.redis.web
|
|||
|
||||
if redisSessionsSettings?.cluster?
|
||||
logger.log {}, "using redis cluster for web sessions"
|
||||
rclient = new ioredis.Cluster(redisSessionsSettings.cluster)
|
||||
sessionRedisClient = new ioredis.Cluster(redisSessionsSettings.cluster)
|
||||
else
|
||||
rclient = redis.createClient(redisSessionsSettings)
|
||||
sessionRedisClient = redis.createClient(redisSessionsSettings)
|
||||
|
||||
RedisStore = require('connect-redis')(session)
|
||||
SessionSockets = require('session.socket.io')
|
||||
|
@ -30,7 +30,7 @@ server = require('http').createServer(app)
|
|||
io = require('socket.io').listen(server)
|
||||
|
||||
# Bind to sessions
|
||||
sessionStore = new RedisStore(client: rclient)
|
||||
sessionStore = new RedisStore(client: sessionRedisClient)
|
||||
cookieParser = CookieParser(Settings.security.sessionSecret)
|
||||
sessionSockets = new SessionSockets(io, sessionStore, cookieParser, Settings.cookieName)
|
||||
|
||||
|
|
Loading…
Reference in a new issue