summaryrefslogtreecommitdiff
path: root/lib/uwsgi/patchwork.ini
blob: 39ffbd63cc7f5f3a871239f2c63d6f2e6c1018cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[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