add tls config

This commit is contained in:
2025-03-31 23:37:28 -07:00
parent 1b6792a8c7
commit d76740e5e7

View File

@@ -15,6 +15,10 @@ export class RedisNotificationRepository implements NotificationRepository {
constructor(
private redisClient = createClient({
url: process.env.REDIS_URL,
socket: {
tls: (process.env.REDIS_URL?.match(/rediss:/) != null),
rejectUnauthorized: false,
}
}),
) {
this.getAllNotificationsForShuttleAndStopId = this.getAllNotificationsForShuttleAndStopId.bind(this);