I’m trying to connect my app to MongoDB using
MONGO_URL: in MUP. The database is on an independent VPS. The VPS is behind a firewall and is connected to the app VPS via a private network. If I don’t secure the database with a username and password I can get it to connect however if I create a user to allow readWrite commands to add security it wont connect. I get this error.
MongoError: failed to connect to server [private-network-ip:27017]
If I log into the database and use
show dbs this is what appears:
admin 0.000GB myspecial_db 0.000GB local 0.000GB
I’m trying to access the
What am I missing here?