2017-09-13 14:49:10 +02:00
|
|
|
[uwsgi]
|
2017-09-14 09:33:06 +02:00
|
|
|
uid = __NAME__
|
2017-09-13 14:49:10 +02:00
|
|
|
gid = users
|
|
|
|
|
|
|
|
protocol = uwsgi
|
|
|
|
wsgi-file = __FINALPATH__/weblate/wsgi.py
|
|
|
|
python-path = __FINALPATH__
|
|
|
|
# Needed for OAuth/OpenID
|
|
|
|
buffer-size = 8192
|
|
|
|
# Increase number of workers for heavily loaded sites
|
|
|
|
#workers = 6
|
|
|
|
# Needed for background processing
|
|
|
|
enable-threads = true
|
|
|
|
# Child processes do not need file descriptors
|
|
|
|
close-on-exec = true
|
|
|
|
# Avoid default 0000 umask
|
|
|
|
umask = 0022
|
|
|
|
|
|
|
|
# process-related settings
|
|
|
|
# master
|
|
|
|
master = true
|
|
|
|
# maximum number of worker processes
|
|
|
|
processes = 4
|
|
|
|
# the socket (use the full path to be safe
|
2017-09-14 09:33:06 +02:00
|
|
|
socket = /opt/__NAME__/uwsgi.sock
|
2017-09-13 14:49:10 +02:00
|
|
|
# ... with appropriate permissions - may be needed
|
|
|
|
chmod-socket = 666
|
2017-09-14 09:33:06 +02:00
|
|
|
stats = /opt/__NAME__/stats.sock
|
2017-09-13 14:49:10 +02:00
|
|
|
# clear environment on exit
|
|
|
|
vacuum = true
|
|
|
|
plugins = python3
|