I dont seem to be able to connect to Heroku Redis using TLS on Node.
These docs arent really much help: https://devcenter.heroku.com/articles/securing-heroku-redis
Does anyone have a working example? Should I be using REDIS_URL or REDIS_TLS_URL?
Im using node_redis v3
I found the Redis 6 add-on by Heroku generated an
Error: self signed certificate in certificate chainerror when when connecting to REDIS_URL without any parameters with ioredis on Node. You can avoid this error by passing in TLS options withrejectUnauthorizedset tofalse.The
rejectUnauthorizedoffalseallows for self-signed certificates, which would be an issue if concerned about MITM attacks. See TLS options for more background.This is working for me with the latest
ioredispackage with rediss:// and redis:// URL's...