Securely connecting to a MongoDB instance hosted on Railway
maiertech
HOBBYOP

a year ago

I would like to connect to a MongoDB service via the public network using MongoDB compass. This is only possible via mongodb://... which is not encrypted.

How do other devs connect to their MongoDB instances from your dev machine when you quickly want to look at data in your MongoDB?

Solved

1 Replies

sarahkb125
EMPLOYEE

a year ago

You should use the mongodb+srv:// connection string format, which supports TLS/SSL encryption, ensuring secure connections. Additionally, you can enable the TCP Proxy feature on Railway to connect externally to the MongoDB instance securely.


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved sarahkb125 about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...