Мое приложение работает в связке на Flask+ Nginx + Uwsgi.
nginx.conf
server{
listen 5555;
server_name server_domain_or_IP;
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi/myapp.sock;
uwsgi_param Host $host;
uwsgi_param X-Real-IP $remote_addr;
uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
}
}
uwsgi.ini
[uwsgi]
callable=app
wsgi-file = /home/dev/serverbot/wsgi.py
master = true
processes = 2
uid=dev
socket = /tmp/uwsgi/myapp.sock
chown-socket = nginx:nginx
chown-socket = 666
vacuum = true
die-on-term=true
Nginx выдыает 502 ошибку. Не понимаю почему.
-
Вопрос задан
-
132 просмотра