Permalink
Browse files

Add Redis auth_pass for remote databases

  • Loading branch information...
1 parent 375463b commit bddc94eb7d0ded4d7a525a2526b109aa16938ffc @Quanttek Quanttek committed Nov 14, 2015
Showing with 3 additions and 2 deletions.
  1. +2 −1 config_example.json
  2. +1 −1 init.js
View
@@ -107,6 +107,7 @@
"redis": {
"host": "127.0.0.1",
- "port": 6379
+ "port": 6379,
+ "auth": null
}
}
View
@@ -10,7 +10,7 @@ require('./lib/configReader.js');
require('./lib/logger.js');
-global.redisClient = redis.createClient(config.redis.port, config.redis.host);
+global.redisClient = redis.createClient(config.redis.port, config.redis.host, {auth_pass: config.redis.auth});
if (cluster.isWorker){

0 comments on commit bddc94e

Please sign in to comment.