How to setup MongoDB behind Nginx Reverse Proxy

前端 未结 4 553
醉酒成梦
醉酒成梦 2020-12-15 19:39

Hi guys I am trying to setup Nginx as a reverse proxy for accessing a MongoDB Database. By default Mongo listens to 27017 port. What I want to do, is redirect a hostname for

4条回答
  •  离开以前
    2020-12-15 19:46

    If you connect to your local instance of mongodb via the usual default ip values it should connect:mongo 10.8.8.10

    The issue is with resolving the address via the mongodb shell which is not happening.

提交回复
热议问题