feat: add password configuration for Redis connection and update environment variables for Redis configuration
This commit is contained in:
@@ -3,15 +3,17 @@ DB_HOST=
|
||||
DB_PASSWORD=
|
||||
DB_PORT=
|
||||
|
||||
DATA_DB=
|
||||
USERS_DB=
|
||||
|
||||
REDIS_HOST=
|
||||
REDIS_PORT=
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# In locale: lasciare vuoto (il cookie su localhost funziona su tutte le porte)
|
||||
# In produzione: .mebboat.it (condiviso tra auth.mebboat.it, console.mebboat.it, api.mebboat.it)
|
||||
COOKIE_DOMAIN=
|
||||
COOKIE_NAME=
|
||||
|
||||
DB_NAME=
|
||||
|
||||
PORT=3006
|
||||
|
||||
JWT_SECRET=
|
||||
|
||||
@@ -3,6 +3,7 @@ const Redis = require('ioredis');
|
||||
const redis = new Redis({
|
||||
host: process.env.REDIS_HOST,
|
||||
port: parseInt(process.env.REDIS_PORT),
|
||||
password: process.env.REDIS_PASSWORD,
|
||||
maxRetriesPerRequest: 3,
|
||||
lazyConnect: true,
|
||||
retryStrategy(times) {
|
||||
|
||||
Reference in New Issue
Block a user