location /
{
uwsgi_pass unix:///home/www/run/mysite/socket;
include uwsgi_params;
uwsgi_buffers 8 256k;
}
uwsgi:
socket: /home/www/run/mysite/socket
pidfile: /home/www/run/mysite/pid
pythonpath: /home/www/mysite
env: DJANGO_SETTINGS_MODULE=mysite.settings
module: mysite.wsgi
daemonize: /home/www/mysite/logs/uwsgi.log
max-requests: 5000
buffer-size: 32768
harakiri: 30
reload-mercy: 8
master: 1
no-orphans: 1
touch-reload: /home/www/mysite/conf/uwsgireload
uid: www-data
gid: www-data
chmod-socket: 660