编辑nginx配置:
server { listen 8098; server_name 127.0.0.1; location / { include uwsgi_params; # uwsgi_pass unix:/tmp/uwsgi.sock; uwsgi_pass 192.168.19.162:8115; } }
uwsgi配置
安装flask
sudo pip install flask --proxy 192.168.52.227
编辑nginx配置:
server { listen 8098; server_name 127.0.0.1; location / { include uwsgi_params; # uwsgi_pass unix:/tmp/uwsgi.sock; uwsgi_pass 192.168.19.162:8115; } }
uwsgi配置
安装flask
sudo pip install flask --proxy 192.168.52.227