use redis host from config
This commit is contained in:
parent
a4437a341e
commit
1c67eea2f0
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ const fetch = require('node-fetch');
|
|||
const crypto = require('crypto');
|
||||
|
||||
const redis = require('redis');
|
||||
const redis_client = redis.createClient();
|
||||
const redis_client = redis.createClient({
|
||||
host: conf.redis_host
|
||||
});
|
||||
|
||||
redis_client.on('error', err => {
|
||||
console.log(err);
|
||||
|
|
Loading…
Reference in a new issue