如何使用uwsgi whitelist命令

时间:2018-04-27 10:35:28

标签: python django python-3.x uwsgi

如何在我的uwsgi.ini中设置白名单以使其正常工作

我的ini设置:

[uwsgi]

http = :80
chdir = /usr/local/myproject
wsgi-file = myproject/wsgi.py
master = true
processes = 2
threads = 4
chmod-socket = 664
vacuum = true
plugins = http,python3
stats = 127.0.0.1:5566
static-map = /static=/usr/localmyproject/static

whitelist = 127.0.0.1

我不知道uwsgi doc意味着什么

https://uwsgi-docs.readthedocs.io/en/latest/Options.html?highlight=whitelist#whitelist

1 个答案:

答案 0 :(得分:0)

您显然需要将列表添加到iptables或ufw,它将准确列出允许连接的地址。 uwsgi.ini不是添加白名单的正确位置。