use redis host from config
This commit is contained in:
parent
a4437a341e
commit
1c67eea2f0
@ -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 New Issue
Block a user