1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00
weblate_ynh/conf/uwsgi.ini

52 lines
1.2 KiB
INI
Raw Normal View History

[uwsgi]
plugins = python3
2017-09-18 15:08:21 +02:00
master = true
protocol = uwsgi
socket = /var/run/__APP__/socket
# http://uwsgi-docs.readthedocs.io/en/latest/Nginx.html#hosting-multiple-apps-in-the-same-process-aka-managing-script-name-and-path-info
2021-06-28 18:39:05 +02:00
mount = __PATH_URL__=__FINALPATH__/venv/lib/__WEBLATE_PYPATH__/site-packages/weblate/wsgi.py
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:
virtualenv = __FINALPATH__/venv
# 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
# Increase number of workers for heavily loaded sites
2020-10-28 12:02:15 +01:00
workers = 8
# Enable threads for Sentry error submission
enable-threads = true
2020-10-28 12:02:15 +01:00
# Child processes do not need file descriptors
2017-09-18 15:08:21 +02:00
close-on-exec = true
2020-10-28 12:02:15 +01:00
# Avoid default 0000 umask
umask = 0022
# Run as weblate user
2020-10-28 12:02:15 +01:00
uid = __APP__
gid = __APP__
chmod-socket = 666
# 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
2020-10-28 12:02:15 +01:00
disable-write-exception = true