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;
|
|
|
|
# Adjust based to uwsgi configuration:
|
2017-09-18 16:52:11 +02:00
|
|
|
uwsgi_pass unix:///var/run/uwsgi/__NAME__.socket;
|
2017-09-13 21:39:29 +02:00
|
|
|
# uwsgi_pass 127.0.0.1:8080;
|
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
|
|
|
|
|
|
|
location __PATH__/favicon.ico {
|
|
|
|
# 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
location __PATH__/robots.txt {
|
|
|
|
# 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
location __PATH__/static {
|
|
|
|
# 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
location __PATH__/media {
|
|
|
|
# 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;
|
|
|
|
}
|