communication within private network
martinerko
HOBBYOP

a year ago

Hi, I would like to configure my app to talk to database directly withinn private network rather than via public network.

I have updated my DATABASEURL and REDISURL variables and pointed them to the private urls but service is failing.

can you please assist me to resolve this?
Thank you

View Deploy details

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

Solved

5 Replies

brody
EMPLOYEE

a year ago


martinerko
HOBBYOP

a year ago

thanks, I have gone through the docs, can't see any issue.
Project ID: 8acb8d84-4384-4704-b3f5-51c6d69e2816


brody
EMPLOYEE

a year ago

Are you using ioredis, or a package that uses ioredis as an upstream?

If so, please read the docs section I linked.


martinerko
HOBBYOP

a year ago

yes, thanks for the hint, for anyone reading this thread, the private db url works out of the box, however for redis connection utilizing ioredis package, you need to add ?family=0 to your connection string.


brody
EMPLOYEE

a year ago

Yep that's exactly what the docs say haha


Status changed to Solved brody about 1 year ago


Loading...