From acb6b39dcf534f27386d344cac7c586d597831d5 Mon Sep 17 00:00:00 2001 From: Giuseppe Raffa <77052701+sesee3@users.noreply.github.com> Date: Tue, 14 Apr 2026 13:27:22 +0200 Subject: [PATCH] feat: add password configuration for Redis connection and update environment variables for Redis configuration --- auth/.env.example | 8 +++++--- auth/src/storage/redis.js | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/auth/.env.example b/auth/.env.example index 475d9e2..32c1f8f 100644 --- a/auth/.env.example +++ b/auth/.env.example @@ -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= diff --git a/auth/src/storage/redis.js b/auth/src/storage/redis.js index 86a1095..7ea8477 100644 --- a/auth/src/storage/redis.js +++ b/auth/src/storage/redis.js @@ -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) {