adding redis password auth

This commit is contained in:
Larry 2017-07-01 20:18:03 -04:00 committed by GitHub
parent 1785519db3
commit 6bf70dfb20
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ module.exports = function(logger){
var proxySwitch = {};
var redisClient = redis.createClient(portalConfig.redis.port, portalConfig.redis.host);
// redis auth if enabled
redisClient.auth(portalConfig.redis.password);
//Handle messages from master process sent via IPC
process.on('message', function(message) {