Securely connecting to a MongoDB instance hosted on Railway
maiertech
HOBBY
2 months 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?
1 Replies
sarahkb125
EMPLOYEE
2 months 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 2 months ago
Status changed to Solved sarahkb125 • about 2 months ago