How to authenticate web frontend in mongodb?

I am running mongodb on a port 27017. So, I see web interface listeningon http://myipaddress:28017But it is open. How can I authenticate it? Thus, only someone viewing this page can view only this page?

+3
source share
1 answer

If security is configured for the mongod instance , authentication is required for the client to access the http interface from another computer ( http://www.mongodb.org/display/DOCS/Http+Interface ). You cannot use authentication for clients who access from the same computer.

If you want to disable the start mongo HTTP interface using the --nohttpinterface option

+2
source

Source: https://habr.com/ru/post/1783009/


All Articles