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,17 +1,13 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
|
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
|
||||||
location = __PATH__/favicon.ico {
|
location ~ ^__PATH__/favicon.ico$ {
|
||||||
alias __INSTALL_DIR__/data/static/favicon.ico;
|
|
||||||
expires 30d;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = __PATH__/robots.txt {
|
alias __INSTALL_DIR__/data/cache/static/favicon.ico;
|
||||||
alias __INSTALL_DIR__/data/static/robots.txt;
|
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/static/ {
|
location __PATH__/static/ {
|
||||||
alias __INSTALL_DIR__/data/static/;
|
alias __INSTALL_DIR__/data/cache/static/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,12 +17,13 @@ location __PATH__/media/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/ {
|
location __PATH__/ {
|
||||||
alias __INSTALL_DIR__/ ;
|
|
||||||
|
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
# Needed for long running operations in admin interface
|
# Needed for long running operations in admin interface
|
||||||
uwsgi_read_timeout 3600;
|
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 SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
|
|
@ -2,12 +2,9 @@
|
||||||
plugins = python3
|
plugins = python3
|
||||||
master = true
|
master = true
|
||||||
protocol = uwsgi
|
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
|
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
|
# Add path to Weblate checkout if you did not install
|
||||||
# Weblate by pip
|
# Weblate by pip
|
||||||
# python-path = /path/to/weblate
|
# python-path = /path/to/weblate
|
||||||
|
@ -37,8 +34,6 @@ umask = 0022
|
||||||
uid = __APP__
|
uid = __APP__
|
||||||
gid = __APP__
|
gid = __APP__
|
||||||
|
|
||||||
chmod-socket = 666
|
|
||||||
|
|
||||||
# Enable harakiri mode (kill requests after some time)
|
# Enable harakiri mode (kill requests after some time)
|
||||||
# harakiri = 3600
|
# harakiri = 3600
|
||||||
# harakiri-verbose = true
|
# harakiri-verbose = true
|
||||||
|
|
Loading…
Reference in a new issue