53 lines
1.3 KiB
Django/Jinja
53 lines
1.3 KiB
Django/Jinja
[uwsgi]
|
|
|
|
# automatically kill workers on master's death
|
|
no-orphans = true
|
|
|
|
# write master's pid in file /run/uwsgi/<confnamespace>/<confname>/pid
|
|
pidfile = /run/uwsgi/%(deb-confnamespace)/%(deb-confname)/pid
|
|
|
|
# bind to UNIX socket at /run/uwsgi/<confnamespace>/<confname>/socket
|
|
#socket = /run/uwsgi/%(deb-confnamespace)/%(deb-confname)/socket
|
|
|
|
socket = :{{ weblate_uwsgi_socket_port }}
|
|
http-socket = 127.0.0.1:{{ weblate_uwsgi_http_socket_port }}
|
|
|
|
# place timestamps into log
|
|
log-date = true
|
|
|
|
plugins = python3
|
|
master = true
|
|
protocol = uwsgi
|
|
wsgi-file = /usr/local/lib/python3.7/dist-packages/weblate/wsgi.py
|
|
python-path = /usr/local/lib/python3.7/dist-packages
|
|
# In case you're using virtualenv uncomment this:
|
|
# virtualenv = /path/to/weblate/virtualenv
|
|
|
|
# Needed for OAuth/OpenID
|
|
buffer-size = 8192
|
|
|
|
# Reload when consuming too much of memory
|
|
reload-on-rss = 250
|
|
|
|
# Enable threads for Sentry error submission
|
|
enable-threads = true
|
|
|
|
# Child processes do not need file descriptors
|
|
close-on-exec = true
|
|
|
|
# Avoid default 0000 umask
|
|
umask = 0022
|
|
|
|
# Enable harakiri mode (kill requests after some time)
|
|
# harakiri = 3600
|
|
# harakiri-verbose = true
|
|
|
|
# Enable uWSGI stats server
|
|
stats = :1717
|
|
stats-http = true
|
|
|
|
# Do not log some errors caused by client disconnects
|
|
ignore-sigpipe = true
|
|
ignore-write-errors = true
|
|
disable-write-exception = true
|