Some days ago I had a task for deploy react application to production envoronment. This app should be interact with tomcat backend on the same host. It was legacy system and was decided to deploy react application to nginx and configure proxy to tomcat. How it often happened with enterprise solutions: even in easy task default decision is not our choice.
In this article will be considered configuration nginx for deploy react application in subdirectory, proxy api request to another host and also important part is running nginx by non-root user and organize nginx directory for local user.
Frontend developer at Nexign