You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upstreamdjango{serverunix:///tmp/ifas.sock; # for a file socket}
# configurationoftheserverserver{listen80;server_name_charsetutf-8;
# maxuploadsizeclient_max_body_size75M; # adjusttotastelocation/static{alias/project-dir/module-name/static/;}
# Finally,sendallnon-mediarequeststotheDjangoserver.location/{proxy_read_timeout300;uwsgi_passdjango;
include uwsgi_params;}}
edit /etc/uwsgi/vassals/project-name.ini
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /projectdir #modify according to your project base dir
# Django's wsgi file
module = app.wsgi #modify according to your app name
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
# the socket (use the full path to be safe
socket = /tmp/ifas.sock
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true