From e14f499f3d8c9ad69e096b8ca20e50b98c46478f Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Sat, 22 Aug 2026 03:46:00 +0100 Subject: [PATCH] fix: pass tls to redis in throttle module (#2415) --- apps/server/src/integrations/throttle/throttle.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/integrations/throttle/throttle.module.ts b/apps/server/src/integrations/throttle/throttle.module.ts index 42dd0ec4a..827f671c1 100644 --- a/apps/server/src/integrations/throttle/throttle.module.ts +++ b/apps/server/src/integrations/throttle/throttle.module.ts @@ -3,7 +3,7 @@ import { ThrottlerModule } from '@nestjs/throttler'; import { ThrottlerStorageRedisService } from '@nest-lab/throttler-storage-redis'; import { EnvironmentService } from '../environment/environment.service'; import { EnvironmentModule } from '../environment/environment.module'; -import { parseRedisUrl } from '../../common/helpers'; +import { createRetryStrategy, parseRedisUrl } from '../../common/helpers'; import { AUTH_THROTTLER, AI_CHAT_THROTTLER } from './throttler-names'; import Redis from 'ioredis'; @@ -27,6 +27,8 @@ import Redis from 'ioredis'; password: redisConfig.password, db: redisConfig.db, family: redisConfig.family, + tls: redisConfig.tls, + retryStrategy: createRetryStrategy(), keyPrefix: 'throttle:', }), ),