How to serve static content for a Node.js application?
<p>Quick question about the correct server infrastructure for a Node application I'm building. The application has a web frontend built with Angular that uses the API I built in Node. This API will also be eventually accessed by a mobile application. In terms of server infrastructure, what is the fastest/cleanest way to do set this up? I would ordinarily do a simple 3 server setup, with a node server, a mongodb server, and an nginx server to act as a proxy, and have the node server serve all static files for the web frontend, but I'm not sure if this is the best practice here. So my two questions are:</p>

<ol>
<li><p>Would it be better to have the nginx server serve all static content for the web frontend and only have Node serve the API?</p></li>
<li><p>The application allows users to upload files to be stored on the server. Where is the best place to store and serve these files?</p></li>
</ol>