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
ⓘ Deployment information is only viewable by project members and Railway employees.
5 Replies
a year ago
Hello,
Please see this docs section -
https://docs.railway.com/guides/private-networking#ioredis
a year ago
thanks, I have gone through the docs, can't see any issue.
Project ID: 8acb8d84-4384-4704-b3f5-51c6d69e2816
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.
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.
Status changed to Solved brody • over 1 year ago