title: Connecting to mongodb database behind a proxy in nodejs
body: <p>I have a client specific mongodb database. We have a node js based web app which is hosted on bluemix. I need to establish a connection between this web app and my client specific mongodb. </p>
  
  <p>For which I think we need two things:</p>
  
  <p>1) Client proxy details added in the code I push to the bluemix</p>
  
  <p>2) Firewall tunnel established between the mongodb and the webapp.</p>
  
  <p>I need help on how we can give proxy options to the function: mongoclient.connect(). The web search din't help. I am using mongodb package in nodejs.</p>
  
  <p>Similar questions have been already asked but not answered.</p>
  
  <p><a href="https://stackoverflow.com/questions/38197407/using-mongoose-and-mlab-behind-a-proxy">Using mongoose and mlab behind a proxy</a></p>
  
  <p><a href="https://stackoverflow.com/questions/33483140/connect-to-mongodb-database-using-mongoose-behind-a-proxy">Connect to MongoDB database using mongoose behind a proxy</a></p>