How not to deploy web applications – Source Rushter.com
Recently, I was looking for tutorials on how to deploy a Django application in 2018. After some research, I found an article which suggests using gunicorn behind nginx web server, which is a pretty standard way of doing it. However, one thing has caught my attention.
The author of the article suggests binding a
gunicorn server to
0.0.0.0. Which opens gunicorn to the external world (the internet).
gunicorn -b 0.0.0.0:80 ...