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

some fixes

This commit is contained in:
Thomas 2024-01-19 19:14:31 +01:00 committed by GitHub
parent 2aa534d82c
commit 96b86125d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 30 deletions

View file

@ -1,17 +1,13 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
location = __PATH__/favicon.ico {
alias __INSTALL_DIR__/data/static/favicon.ico;
expires 30d;
}
location ~ ^__PATH__/favicon.ico$ {
location = __PATH__/robots.txt {
alias __INSTALL_DIR__/data/static/robots.txt;
alias __INSTALL_DIR__/data/cache/static/favicon.ico;
expires 30d;
}
location __PATH__/static/ {
alias __INSTALL_DIR__/data/static/;
alias __INSTALL_DIR__/data/cache/static/;
expires 30d;
}
@ -21,12 +17,13 @@ location __PATH__/media/ {
}
location __PATH__/ {
alias __INSTALL_DIR__/ ;
include uwsgi_params;
# Needed for long running operations in admin interface
uwsgi_read_timeout 3600;
uwsgi_pass 127.0.0.1:__PORT__;
# Adjust based to uwsgi configuration:
uwsgi_pass unix:///run/uwsgi/app/weblate/socket;
# uwsgi_pass 127.0.0.1:8080;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;

View file

@ -2,12 +2,9 @@
plugins = python3
master = true
protocol = uwsgi
socket = 127.0.0.1:__PORT__
socket = 127.0.0.1:8080
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
@ -37,8 +34,6 @@ umask = 0022
uid = __APP__
gid = __APP__
chmod-socket = 666
# Enable harakiri mode (kill requests after some time)
# harakiri = 3600
# harakiri-verbose = true