fix: add missing password configuration for Redis clients
This commit is contained in:
@@ -2,13 +2,15 @@ const Redis = require('ioredis');
|
|||||||
|
|
||||||
const redis = new Redis({
|
const redis = new Redis({
|
||||||
host: process.env.REDIS_HOST,
|
host: process.env.REDIS_HOST,
|
||||||
port: process.env.REDIS_PORT
|
port: process.env.REDIS_PORT,
|
||||||
|
password: process.env.REDIS_PASSWORD,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Client dedicato per subscribe (ioredis richiede client separato)
|
// Client dedicato per subscribe (ioredis richiede client separato)
|
||||||
const redisSub = new Redis({
|
const redisSub = new Redis({
|
||||||
host: process.env.REDIS_HOST,
|
host: process.env.REDIS_HOST,
|
||||||
port: process.env.REDIS_PORT
|
port: process.env.REDIS_PORT,
|
||||||
|
password: process.env.REDIS_PASSWORD,
|
||||||
});
|
});
|
||||||
|
|
||||||
redis.on('error', (error) => {
|
redis.on('error', (error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user