Merge pull request #58 from brendan-ch/hotfix/use-tls

hotfix/use-tls
This commit is contained in:
2025-07-03 16:37:22 -04:00
committed by GitHub

View File

@@ -7,7 +7,7 @@ export abstract class BaseRedisRepository {
redisClient = createClient({
url: process.env.REDIS_URL,
socket: {
tls: (process.env.REDIS_URL?.match(/rediss:/) != null),
tls: process.env.NODE_ENV === 'production',
rejectUnauthorized: false,
}
}),
@@ -30,4 +30,4 @@ export abstract class BaseRedisRepository {
public async clearAllData() {
await this.redisClient.flushAll();
}
}
}