Now that we have started using docker, let's set up a container for an nginx reverse proxy. For people who have never heard of a reverse proxy, it is a server that sits in front of the rest of the backend and fowards requests to the appropriate service. This will enable us to set up load balancing in the future, where we can have several instances of the flask application running simultaneously.
see here to get a sense for the overall application architechure I am proposing
see here for more info on configuring nginx to run with a flask application
This just sets up the basic file structure and configuration for nginx. I figure we can create separate issues when we want to add logging, ssh, load balancing, etc.
Now that we have started using docker, let's set up a container for an nginx reverse proxy. For people who have never heard of a reverse proxy, it is a server that sits in front of the rest of the backend and fowards requests to the appropriate service. This will enable us to set up load balancing in the future, where we can have several instances of the flask application running simultaneously.
see here to get a sense for the overall application architechure I am proposing
see here for more info on configuring nginx to run with a flask application
and here is an introduction to nginx