NGINX proxy pass to separate port for route starting with /api
Solution 1:
If you do not serve any static files with nginx, then the content of root
directive does not matter.
However, it is beneficial to serve static assets with nginx, because it is really efficient in serving files to clients.
Backends should concentrate on serving dynamic content.