Connect to MongoDB database using mongoose behind a proxy

心已入冬 提交于 2019-12-01 04:16:59

I had the same problem and figured out a solution that worked for me.

Example mongodb URI:

mongodb://:@ds123456.mlab.com:37409/dbName

  1. Use a proxy client (e.g. Proxifier).
  2. Create a HTTPS proxy through port 8080 using your corporate proxy as the address.

  1. Create a rule for mlab using your URI's port as the target port, which uses the HTTPS proxy you created above as its action.

  1. Prioritize your mlab rule high in the rules list.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!