2017-11-23 22:56:00 +01:00
|
|
|
[uwsgi]
|
|
|
|
plugins = python
|
|
|
|
master = true
|
|
|
|
protocol = uwsgi
|
|
|
|
socket = /var/run/uwsgi/__APP__.socket
|
|
|
|
virtualenv = __FINALPATH__/venv
|
2018-05-20 21:37:45 +02:00
|
|
|
|
|
|
|
# http://uwsgi-docs.readthedocs.io/en/latest/Nginx.html#hosting-multiple-apps-in-the-same-process-aka-managing-script-name-and-path-info
|
|
|
|
mount = __PATH__=__FINALPATH__/pagure.wsgi
|
|
|
|
manage-script-name = true
|
|
|
|
|
|
|
|
# Increase number of workers for heavily loaded sites
|
|
|
|
# Needed for background processing
|
|
|
|
enable-threads = true
|
|
|
|
# Child processes do not need file descriptors
|
|
|
|
close-on-exec = true
|
2017-11-23 22:56:00 +01:00
|
|
|
## processes = [number of processes]
|
|
|
|
processes = 5
|
|
|
|
|