From ab86e3ff850eb5f1bccb9dc18515f7cbedc41f7b Mon Sep 17 00:00:00 2001 From: sbriat Date: Mon, 20 Mar 2023 11:49:30 +0100 Subject: [PATCH] secure redis --- src/modules/configuration/configuration.module.ts | 1 + src/modules/territories/territories.module.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/configuration/configuration.module.ts b/src/modules/configuration/configuration.module.ts index 2cc0957..fab6fe0 100644 --- a/src/modules/configuration/configuration.module.ts +++ b/src/modules/configuration/configuration.module.ts @@ -21,6 +21,7 @@ import { SetConfigurationUseCase } from './domain/usecases/set-configuration.use config: { host: configService.get('REDIS_HOST'), port: configService.get('REDIS_PORT'), + password: configService.get('REDIS_PASSWORD'), }, }), }), diff --git a/src/modules/territories/territories.module.ts b/src/modules/territories/territories.module.ts index 7f4a502..72ff8b7 100644 --- a/src/modules/territories/territories.module.ts +++ b/src/modules/territories/territories.module.ts @@ -41,6 +41,7 @@ import { TerritoryProfile } from './mappers/territory.profile'; store: await redisStore({ host: configService.get('REDIS_HOST'), port: configService.get('REDIS_PORT'), + password: configService.get('REDIS_PASSWORD'), ttl: configService.get('CACHE_TTL'), }), }),