blob: bc487ca2768c6a46b2d6409e6b6650638f0bab83 (
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
|
[uwsgi]
project = patchwork
base = /usr/share/webapps
user = nginx
group = www-data
chdir = %(base)/%(project)
pythonpath = %(base)/%(project)
module = %(project).wsgi:application
wsgi-file = %(project)/wsgi.py
plugins = python
master = true
processes = 4
# 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/%(project).sock
chown-socket = nginx:www-data
chmod-socket = 665
vacuum = true
|