From d3989ba6f725e7b156838845b02d37f0b79e4b51 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Sat, 1 Jun 2024 14:06:30 -0700 Subject: [PATCH] :ambulance: Redis settings for AWS Elasticache --- packages/api/src/app.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/api/src/app.module.ts b/packages/api/src/app.module.ts index e1c2e4d3e..b9b530e79 100644 --- a/packages/api/src/app.module.ts +++ b/packages/api/src/app.module.ts @@ -67,7 +67,9 @@ import { ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler'; port: Number(process.env.REDIS_PORT) || 6379, password: process.env.REDIS_PASS, username: process.env.REDIS_USER || 'default', - db: Number(process.env.REDIS_DB) || 0 + db: Number(process.env.REDIS_DB) || 0, + enableReadyCheck: false, + maxRetriesPerRequest: null }, }), ],