title: Do I need to setup nginx as a reverse proxy for my MongoDB instance?
body: <p>I have configured nginx as a reverse proxy for my webapp like this:</p>
  
  <pre><code>https://www.myapp.com - main site
  https://api.myapp.com - api endpoints
  </code></pre>
  
  <p>I wonder, if I should run mongodb independently of nginx environment or I can configure it so that it is accessible on this route:</p>
  
  <pre><code>https://db.myapp.com - mongodb running here
  </code></pre>
  
  <p>Is it a viable option or I shouldn't care about how elegant the url is and just use a standard config like described in <a href="https://docs.mongodb.com/manual/reference/connection-string/" rel="nofollow noreferrer">the docs</a>? If I go this way, will there be any performance issues linked with this config?</p>