Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- configuring nginx and uwsgi for python flask application
- [uwsgi]
- socket=/tmp/uwsgi_mysite.sock
- chmod-socket=666
- abstract-socket=false
- master=true
- workers=2
- uid=altera
- gid=altera
- chdir=/home/altera/www/mysite ; Current dir
- pp=/home/altera/www/mysite ; Python Path (to your application)
- pyhome=/home/altera/vpy/mysite ; Path to virtual environment
- plugins=python3
- module=main ; *.py file name application starting from
- post-buffering=8192
- server {
- server_name mysite;
- root /home/altera/www/mysite;
- location / {
- include uwsgi_params;
- uwsgi_pass unix:/tmp/uwsgi_mysite.sock;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment