Node.js SSH Tunneling to MongoDB using Mongoose

前端 未结 3 1955
滥情空心
滥情空心 2021-01-02 06:05

I have two Mongo DBs. One for my dev environment, one for production as seen here from my Robomongo setup:

The production db is SSH tunneled to my Digital O

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 06:09

    dstHost needs to be a hostname/IP, not a MongoDB connection string. In this particular case, you can actually omit dstHost, localHost, and localPort in this particular case because they already default to the values you're providing.

提交回复
热议问题