N
Novu15mo 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_Bot15mo ago
@djain#007, you just advanced to level 4!
mdd
mdd15mo ago
not sure what you want to do but you can pass Redis instance to the BullMQ so it will use that connection.
Kelvis
Kelvis15mo ago
To connect using TLS you need to set the env var REDIS_TLS
Novu_Bot
Novu_Bot15mo ago
@Kelvis, you just advanced to level 1!
Kelvis
Kelvis15mo 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)

Did you find this page helpful?