[uwsgi] plugin = python3 uid = {{ user }} gid = {{ user }} # the socket (use the full path to be safe socket = /run/apis-rilec.socket chown-socket = {{ user }}:nginx chmod-socket = 660 # log logto = /var/log/uwsgi/apis-rilec/apis-rilec.log # Django-related settings # the base directory (full path) chdir = {{ django_app }} # Django's wsgi file module = apis_rilec_fri.wsgi # the virtualenv (full path) home = {{ django_venv }} # process-related settings # master master = true # maximum number of worker processes processes = 16 harakiri = 3600 # clear environment on exit vacuum = true