[uwsgi] # change this to python27 if running Patchwork under Python 2.7 plugins = python3 project = patchwork base = /opt user = www-data group = www-data url = / chdir = %(base)/%(project) pythonpath = %(base)/%(project) module = %(project).wsgi:application # rewrite PATH_INFO and SCRIPT_NAME according to mount-points (for nginx) manage-script-name = true mount = %(url)=%(module) master = true processes = 5 # increase buffer size to avoid "502 bad gateway error" # "recv() failed (104: Connection reset by peer) while reading response header from upstream" buffer-size = 16384 uid = %(user) gid = %(group) daemonize = /var/log/%(project).log socket = /run/uwsgi/%(project).sock chmod-socket = 660 vacuum = true