MongoDB Connection - Public vs Private
thenattyice
HOBBYOP

3 months ago

I am working on a Node JS app and want to have it connect to my Railway MongoDB instance. IU tried connecting using the MONGO_URL, which is private, and it failed. I worry that public isn't secure for my app, which is local while in dev, to connect properly. What should I be using?

$10 Bounty

1 Replies

3 months ago

The public url is required if you want to connect to it locally with your NodeJS application in development. Use the private url whenever it's possible (not in this case).


Welcome!

Sign in to your Railway account to join the conversation.

Loading...