2017-09-13 14:49:10 +02:00
|
|
|
[uwsgi]
|
2018-10-19 23:28:40 +02:00
|
|
|
plugins = python3
|
2017-09-18 15:08:21 +02:00
|
|
|
master = true
|
|
|
|
protocol = uwsgi
|
2024-01-19 19:26:01 +01:00
|
|
|
socket = /var/run/__APP__/socket
|
2024-01-19 19:31:50 +01:00
|
|
|
wsgi-file = /etc/uwsgi/apps-available/__APP__.ini
|
2017-12-17 17:19:48 +01:00
|
|
|
|
2020-10-28 12:02:15 +01:00
|
|
|
# Add path to Weblate checkout if you did not install
|
|
|
|
# Weblate by pip
|
|
|
|
# python-path = /path/to/weblate
|
|
|
|
|
|
|
|
# In case you're using virtualenv uncomment this:
|
2024-01-17 14:07:41 +01:00
|
|
|
virtualenv = __INSTALL_DIR__/venv
|
2020-10-28 12:02:15 +01:00
|
|
|
|
2017-09-13 14:49:10 +02:00
|
|
|
# Needed for OAuth/OpenID
|
2017-09-18 15:08:21 +02:00
|
|
|
buffer-size = 8192
|
2020-10-28 12:02:15 +01:00
|
|
|
|
|
|
|
# Reload when consuming too much of memory
|
|
|
|
reload-on-rss = 250
|
|
|
|
|
2017-09-13 14:49:10 +02:00
|
|
|
# Increase number of workers for heavily loaded sites
|
2020-10-28 12:02:15 +01:00
|
|
|
workers = 8
|
|
|
|
|
|
|
|
# Enable threads for Sentry error submission
|
2017-09-13 14:49:10 +02:00
|
|
|
enable-threads = true
|
2020-10-28 12:02:15 +01:00
|
|
|
|
2017-09-13 14:49:10 +02:00
|
|
|
# Child processes do not need file descriptors
|
2017-09-18 15:08:21 +02:00
|
|
|
close-on-exec = true
|
2019-02-25 23:09:47 +01:00
|
|
|
|
2020-10-28 12:02:15 +01:00
|
|
|
# Avoid default 0000 umask
|
|
|
|
umask = 0022
|
|
|
|
|
2019-02-25 23:09:47 +01:00
|
|
|
# Run as weblate user
|
2020-10-28 12:02:15 +01:00
|
|
|
uid = __APP__
|
|
|
|
gid = __APP__
|
|
|
|
|
|
|
|
# Enable harakiri mode (kill requests after some time)
|
|
|
|
# harakiri = 3600
|
|
|
|
# harakiri-verbose = true
|
|
|
|
|
|
|
|
# Enable uWSGI stats server
|
|
|
|
# stats = :1717
|
|
|
|
# stats-http = true
|
2019-02-25 23:09:47 +01:00
|
|
|
|
|
|
|
# Do not log some errors caused by client disconnects
|
|
|
|
ignore-sigpipe = true
|
|
|
|
ignore-write-errors = true
|
2024-01-19 19:14:31 +01:00
|
|
|
disable-write-exception = true
|