Open cat1314e opened 2 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:
![17140231363558](https://github.com/redis/ioredis/assets/68625703/3d215701-367f-4ebf-9ea6-faafa3233216)
questions: I want know how i set ioredis ssl configuration can connect aws cluster redis?