mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
27 lines
594 B
INI
27 lines
594 B
INI
[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
|