Open cat1314e opened 6 months ago
@cat1314e the documentation should work, using it in production, but we are passing password within redisOption
https://github.com/redis/ioredis?tab=readme-ov-file#special-note-aws-elasticache-clusters-with-tls
new Redis.Cluster(
[
{
host: config.redis.host,
port: config.redis.port,
},
],
{
// @see: https://github.com/luin/ioredis#special-note-aws-elasticache-clusters-with-tls
dnsLookup: (address, callback) => callback(null, address),
redisOptions: {
tls: {},
password: config.redis.authToken,
},
}
);
aws cluster redis need SSL set true to connect,
my code is this:
This is terminal print:
This is my local use app Another Redis Desktop Manager connect screenshot:
questions: I want know how i set ioredis ssl configuration can connect aws cluster redis?