N
Novu4mo ago
djain#007

Connection to redis with tls

How can I connect to redis using rediss , I cannot see any option to connect to bullmq like this const redis = new Redis("rediss://redis.my-service.com"); @Support
5 Replies
Novu_Bot
Novu_Bot4mo ago
@djain#007, you just advanced to level 4!
madd
madd4mo ago
not sure what you want to do but you can pass Redis instance to the BullMQ so it will use that connection.
Kelvis
Kelvis4mo ago
To connect using TLS you need to set the env var REDIS_TLS
Novu_Bot
Novu_Bot4mo ago
@Kelvis, you just advanced to level 1!
Kelvis
Kelvis4mo ago
it works for me when REDIS_TLS={} but you can also send TLS parameters in the JSON value, like "servername", "host" and "port". (You still need to set REDIS_HOST and REDIS_PORT)