My application is not working with the private Redis
descontola
HOBBYOP

a year ago

When I try to use REDISURL variable in my application it doesn't work as intended, but when I change to REDISPUBLIC_URL it works fine, could somebody help me with this issue?

I'm already creating my connection with redis as this:

const redisURL = new URL(process.env.REDIS_URL);

redis: {
family: 0,
host: redisURL.hostname,
port: Number(redisURL.port),
username: redisURL.username,
password: redisURL.password
}

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

brody
EMPLOYEE

a year ago

Hello,

Please see our docs on this topic -

https://docs.railway.app/guides/private-networking#ioredis


descontola
HOBBYOP

a year ago

Hello,

Please see our docs on this topic -

https://docs.railway.app/guides/private-networking#ioredis

Thanks for the advice, I was using a lib called bee-queue that hasn't support for ioredis.

So I needed to change my whole project to use bullmq, which allows ioredis connections and now everything is working as expected using the internal connection.

Thank you!


Status changed to Solved brody over 1 year ago


Loading...