gunicorn + nginx: Server via socket or proxy?

后端 未结 5 1253
春和景丽
春和景丽 2021-01-30 08:46

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

5条回答
  •  生来不讨喜
    2021-01-30 09:39

    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"

提交回复
热议问题