Open troykelly opened 4 months ago
This is related to https://github.com/redis/ioredis/pull/1137 I assume because it's tls requiring sni that ioredis is having the issue.
Resolved by passing servername
// Redis client configuration
const redisHost = process.env.REDIS_HOST || 'redis'
const redisPassword = process.env.REDIS_PASSWORD || ''
// is "REDIS_TLS" truthy
const redisTls: ConnectionOptions | undefined = process.env.REDIS_TLS
? { servername: redisHost }
: undefined
const redisOptions: RedisOptions = {
host: redisHost,
password: redisPassword,
tls: redisTls
}
this.redisClient = new Redis(redisOptions)
Connecting to Redis over TLS generates:
Given
redis-parser
is unmaintained (for six years now), it seems counter productive to log the issue there.