I used Nginx as a reverse proxy for deployment and it works well.
But I came across Kong API Gateway and it looks great because of the plugins and integrations. So I wanted to understand (if possible) how can I serve my react frontend and the whole application using kong instead of nginx.
Kong is an Nginx instance, so you could definitively replace your Nginx instance with a Kong instance.
The biggest hurdles would be:
Kong uses a database (PostgreSQL or Cassandra) in order to store state. You would have to include a database in your setup so Kong can use it. Please give a look at the Docker installation guide.
You would have to translate your custom Nginx reverse-proxy settings to Kong configurations. Depending on how complex they are, this could take some work, or be very straightforward.
Regarding the translation of nginx reverse-proxy settings to Kong configurations, how do the proxy_set_header directives get translated to Kong environment variables? Thanks