The below code works with Redis 5 or below on heroku.
const queueConfig = {};
queueConfig.redis = process.env.Redis-Url;
const queue = kue.createQueue(queueConfig);
Redis needs to be updated to version 6.x and to avoid self signed cert error I need to set tls: {rejectUnauthorized : false }
How do I modify above code to set the tls. I set it like below but I think there is cleaner way of doing it:
const queueConfig = {};
queueConfig.redis = {options: {url : process.env.Redis-Url, tls: {rejectUnauthorized: false}}};
const queue = kue.createQueue(queueConfig);