Base vector designed by Freepik

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.

The technologies…

Felix Khodakovsky

Frontend developer at Nexign

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store