I\'ve seen two strategies for hosting a django application with gunicorn and nginx.
One strategy is to run gunicorn on a network port. For example (from http://goodcode
would prefer socket traffic over TCP/IP since no extra port is needed to be open. the less ports open the the more hardened your system becomes
as suggested here "be paranoid" https://hynek.me/talks/python-deployments/
"UNIX file sockets with restrictive permissions are your friends. And you can stop coming up with port numbers"