2017-09-13 14:49:10 +02:00
|
|
|
location __PATH__ {
|
2017-09-13 17:17:05 +02:00
|
|
|
#Source: https://docs.weblate.org/en/latest/admin/install.html#sample-configuration-for-nginx-and-uwsgi
|
|
|
|
# Path to source
|
|
|
|
alias __FINALPATH__/ ;
|
2017-09-13 14:49:10 +02:00
|
|
|
|
2017-09-13 21:39:29 +02:00
|
|
|
include uwsgi_params;
|
|
|
|
# Needed for long running operations in admin interface
|
|
|
|
uwsgi_read_timeout 3600;
|
2017-11-20 15:58:51 +01:00
|
|
|
uwsgi_pass unix:///var/run/uwsgi/__NAME__.socket;
|
2017-09-13 14:49:10 +02:00
|
|
|
|
2017-09-13 17:17:05 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2017-09-13 14:49:10 +02:00
|
|
|
}
|
2017-09-14 09:33:06 +02:00
|
|
|
|
2018-01-19 08:08:46 +01:00
|
|
|
location ^__PATH__/favicon.ico$ {
|
2017-09-14 09:33:06 +02:00
|
|
|
# DATA_DIR/static/favicon.ico
|
2017-09-15 10:58:04 +02:00
|
|
|
alias __FINALPATH__/data/static/favicon.ico;
|
2017-09-14 09:33:06 +02:00
|
|
|
expires 30d;
|
|
|
|
}
|
|
|
|
|
2018-01-19 08:08:46 +01:00
|
|
|
location ^__PATH__/robots.txt$ {
|
2017-09-14 09:33:06 +02:00
|
|
|
# DATA_DIR/static/robots.txt
|
2017-09-15 10:58:04 +02:00
|
|
|
alias __FINALPATH__/data/static/robots.txt;
|
2017-09-14 09:33:06 +02:00
|
|
|
expires 30d;
|
|
|
|
}
|
|
|
|
|
2018-01-19 08:08:46 +01:00
|
|
|
location __PATH__/static/ {
|
2017-09-14 09:33:06 +02:00
|
|
|
# DATA_DIR/static/
|
2017-09-15 10:58:04 +02:00
|
|
|
alias __FINALPATH__/data/static/;
|
2017-09-14 09:33:06 +02:00
|
|
|
expires 30d;
|
|
|
|
}
|
|
|
|
|
2018-01-19 08:08:46 +01:00
|
|
|
location __PATH__/media/ {
|
2017-09-14 09:33:06 +02:00
|
|
|
# DATA_DIR/media/
|
2017-09-15 10:58:04 +02:00
|
|
|
alias __FINALPATH__/data/media/;
|
2017-09-14 09:33:06 +02:00
|
|
|
expires 30d;
|
|
|
|
}
|