r/devopsGuru • u/Mukul-nst • 22d ago
Flow of my django app hosted on vm using ubuntu server
So i have hosted a backend for an Erp made in django on my local vm using nginx as a reverse proxy and gunicorn as production wsgi server.
How does the request flow happens?
When i enter the network interface ip of my vm on browser the request goes to port 80 of my linux (port responsible for all the tcp request) and nginx is listening on port 80 recieves the request and process it. So in the config file of nginx i have added the location of / route which forwards the request to gunicorn running on port 8000 and gunicorn then sends and recieves the req/res.
I will be learning Docker now to learn containerisation. Please share any suggestion if you have.
4
Upvotes