Hello everyone.
I build a self hosted instance of mongodb in AWS EC2 with username and password configs.
It work correclty with connection in compass or in my app using the uri like this:
mongodb://username:password@11.22.33.44:27017/db?authSource=admin
When I fetch 11.22.33.44:27017, I get this message:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
I want to use an uri using a subdomain like the uri provided by mongo atlas.
something like this
mongodb://username:password@mongodb.subdomain.mydomain.com/db
then deny all access to port via IP address 11.22.33.44:27017.
I want only acces to mongo instance via one uri with domain name.
Thanks