2019-08-28 08:30:33 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
2020-10-28 12:02:15 +01:00
|
|
|
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
|
2024-01-19 19:14:31 +01:00
|
|
|
location ~ ^__PATH__/favicon.ico$ {
|
2017-09-14 09:33:06 +02:00
|
|
|
|
2024-01-21 12:21:47 +01:00
|
|
|
alias __INSTALL_DIR__/data/cache/static/favicon.ico;
|
2024-01-19 19:14:31 +01:00
|
|
|
expires 30d;
|
|
|
|
}
|
2017-09-14 09:33:06 +02:00
|
|
|
|
2024-01-19 19:14:31 +01:00
|
|
|
location __PATH__/static/ {
|
2024-01-21 12:21:47 +01:00
|
|
|
alias __INSTALL_DIR__/data/cache/static/;
|
2024-01-19 19:14:31 +01:00
|
|
|
expires 30d;
|
|
|
|
}
|
2019-02-25 23:09:47 +01:00
|
|
|
|
2024-01-19 19:14:31 +01:00
|
|
|
location __PATH__/media/ {
|
2024-01-21 12:21:47 +01:00
|
|
|
alias __INSTALL_DIR__/data/media/;
|
2024-01-19 19:14:31 +01:00
|
|
|
expires 30d;
|
|
|
|
}
|
2019-02-25 23:09:47 +01:00
|
|
|
|
2024-01-19 19:14:31 +01:00
|
|
|
location __PATH__/ {
|
2024-01-20 18:59:33 +01:00
|
|
|
|
|
|
|
alias __INSTALL_DIR__/;
|
|
|
|
|
2024-01-19 19:14:31 +01:00
|
|
|
include uwsgi_params;
|
|
|
|
# Needed for long running operations in admin interface
|
|
|
|
uwsgi_read_timeout 3600;
|
|
|
|
# Adjust based to uwsgi configuration:
|
2024-01-20 11:26:29 +01:00
|
|
|
uwsgi_pass unix:///var/run/__APP__/socket;
|
2024-01-19 19:14:31 +01:00
|
|
|
# uwsgi_pass 127.0.0.1:8080;
|
|
|
|
|
2019-02-25 23:09:47 +01:00
|
|
|
|
2022-03-04 08:23:50 +01:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2019-08-28 08:30:33 +02:00
|
|
|
}
|