title: Nginx for authentication and authorization in Node JS app
body: <p>I am developing app in nodejs with expressJS and for performance optimization, I have decided to use Nginx with NodeJS (Based on my conclusion, after reading lots of articles on Nginx + NodeJS).
  <br>
  I have divided tasks for Nginx and NodeJS as follow :</p>
  
  <p>Nginx</p>
  
  <ol>
  <li>Serve static files</li>
  <li>Authentication</li>
  <li>Authorization</li>
  </ol>
  
  <p>
  NodeJS</p>
  
  <ol>
  <li>Dynamic API Handling with DB Interaction</li>
  </ol>
  
  <p>Is it good idea to design app in above way?<br>
  If yes then how to handle authentication and authorization in Node JS app using Nginx?
  <br>
  If no then what is better way to handle load in NodeJS app?</p>