aboutsummaryrefslogtreecommitdiffstats
path: root/main/patchwork/nginx-uwsgi-patchwork-conf.ini
blob: 2f76b80ddf13cb3a778798322521c4277931b0aa (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/uwsgi/%(project).sock
chown-socket = nginx:www-data
chmod-socket = 665
vacuum = true