From 04ce3028e3271dae4eb5be405d38b61dce433107 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Tue, 4 Jun 2024 15:45:57 +0200 Subject: [PATCH] :ambulance: Support for Redis SSL via env var REDIS_TLS --- packages/api/src/app.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/app.module.ts b/packages/api/src/app.module.ts index b9b530e79..1792a80ba 100644 --- a/packages/api/src/app.module.ts +++ b/packages/api/src/app.module.ts @@ -69,7 +69,8 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler'; username: process.env.REDIS_USER || 'default', db: Number(process.env.REDIS_DB) || 0, enableReadyCheck: false, - maxRetriesPerRequest: null + maxRetriesPerRequest: null, + tls: process.env.REDIS_TLS ? { rejectUnauthorized: false } : undefined, }, }), ],