mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
53 lines
1.3 KiB
INI
53 lines
1.3 KiB
INI
[uwsgi]
|
|
plugins = python3
|
|
master = true
|
|
protocol = uwsgi
|
|
socket = 127.0.0.1:__PORT__
|
|
wsgi-file = __INSTALL_DIR__/venv/lib/__WEBLATE_PYPATH__/site-packages/weblate/wsgi.py
|
|
|
|
# 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__=__INSTALL_DIR__/venv/lib/__WEBLATE_PYPATH__/site-packages/weblate/wsgi.py
|
|
|
|
# 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 = __INSTALL_DIR__/venv
|
|
|
|
# Needed for OAuth/OpenID
|
|
buffer-size = 8192
|
|
|
|
# Reload when consuming too much of memory
|
|
reload-on-rss = 250
|
|
|
|
# Increase number of workers for heavily loaded sites
|
|
workers = 8
|
|
|
|
# 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
|
|
|
|
# Run as weblate user
|
|
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
|
|
disable-write-exception = true
|