adding redis auth password

This commit is contained in:
Larry 2017-07-01 20:21:18 -04:00 committed by GitHub
parent d96fa1e06b
commit bdbe9a7896
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ module.exports = function(logger, poolConfig){
var logSubCat = 'Thread ' + (parseInt(forkId) + 1);
var connection = redis.createClient(redisConfig.port, redisConfig.host);
// redis auth if needed
connection.auth(redisConfig.password);
connection.on('ready', function(){
logger.debug(logSystem, logComponent, logSubCat, 'Share processing setup with redis (' + redisConfig.host +
':' + redisConfig.port + ')');