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:
parent
2aa534d82c
commit
96b86125d9
2 changed files with 22 additions and 30 deletions
|
@ -1,32 +1,29 @@
|
|||
#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;
|
||||
expires 30d;
|
||||
}
|
||||
alias __INSTALL_DIR__/data/cache/static/favicon.ico;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
location __PATH__/static/ {
|
||||
alias __INSTALL_DIR__/data/static/;
|
||||
expires 30d;
|
||||
}
|
||||
location __PATH__/static/ {
|
||||
alias __INSTALL_DIR__/data/cache/static/;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
location __PATH__/media/ {
|
||||
alias __INSTALL_DIR__/data/media/;
|
||||
expires 30d;
|
||||
}
|
||||
location __PATH__/media/ {
|
||||
alias __INSTALL_DIR__/data/media/;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
location __PATH__/ {
|
||||
alias __INSTALL_DIR__/ ;
|
||||
location __PATH__/ {
|
||||
include uwsgi_params;
|
||||
# Needed for long running operations in admin interface
|
||||
uwsgi_read_timeout 3600;
|
||||
# Adjust based to uwsgi configuration:
|
||||
uwsgi_pass unix:///run/uwsgi/app/weblate/socket;
|
||||
# uwsgi_pass 127.0.0.1:8080;
|
||||
|
||||
include uwsgi_params;
|
||||
# Needed for long running operations in admin interface
|
||||
uwsgi_read_timeout 3600;
|
||||
uwsgi_pass 127.0.0.1:__PORT__;
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue