mirror of https://github.com/BTCPrivate/z-nomp.git
added redis auth
This commit is contained in:
parent
f6966534ff
commit
c74724c19a
|
@ -54,7 +54,6 @@ module.exports = function(logger){
|
|||
var keyScriptTemplate = '';
|
||||
var keyScriptProcessed = '';
|
||||
|
||||
|
||||
var processTemplates = function(){
|
||||
|
||||
for (var pageName in pageTemplates){
|
||||
|
@ -135,6 +134,7 @@ module.exports = function(logger){
|
|||
async.waterfall([
|
||||
function(callback){
|
||||
var client = redis.createClient(portalConfig.redis.port, portalConfig.redis.host);
|
||||
client.auth(portalConfig.redis.password);
|
||||
client.hgetall('coinVersionBytes', function(err, coinBytes){
|
||||
if (err){
|
||||
client.quit();
|
||||
|
|
Loading…
Reference in New Issue