mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closed #300 - issue where web socket connections were not working properly
with passworded redis instances
This commit is contained in:
@@ -19,10 +19,9 @@ var SocketIO = require('socket.io').listen(global.server, {
|
||||
meta = require('./meta.js'),
|
||||
async = require('async'),
|
||||
RedisStoreLib = require('connect-redis')(express),
|
||||
redis = require('redis'),
|
||||
redisServer = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host')),
|
||||
RDB = require('./redis'),
|
||||
RedisStore = new RedisStoreLib({
|
||||
client: redisServer,
|
||||
client: RDB,
|
||||
ttl: 60*60*24*14
|
||||
}),
|
||||
socketCookieParser = express.cookieParser(nconf.get('secret')),
|
||||
|
||||
Reference in New Issue
Block a user