mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Fix nginx alias_transveral
This commit is contained in:
parent
3664dc8cd2
commit
12b209a5a4
1 changed files with 4 additions and 4 deletions
|
@ -12,25 +12,25 @@ location __PATH__ {
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/favicon.ico {
|
location ^__PATH__/favicon.ico$ {
|
||||||
# DATA_DIR/static/favicon.ico
|
# DATA_DIR/static/favicon.ico
|
||||||
alias __FINALPATH__/data/static/favicon.ico;
|
alias __FINALPATH__/data/static/favicon.ico;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/robots.txt {
|
location ^__PATH__/robots.txt$ {
|
||||||
# DATA_DIR/static/robots.txt
|
# DATA_DIR/static/robots.txt
|
||||||
alias __FINALPATH__/data/static/robots.txt;
|
alias __FINALPATH__/data/static/robots.txt;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/static {
|
location __PATH__/static/ {
|
||||||
# DATA_DIR/static/
|
# DATA_DIR/static/
|
||||||
alias __FINALPATH__/data/static/;
|
alias __FINALPATH__/data/static/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/media {
|
location __PATH__/media/ {
|
||||||
# DATA_DIR/media/
|
# DATA_DIR/media/
|
||||||
alias __FINALPATH__/data/media/;
|
alias __FINALPATH__/data/media/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
|
|
Loading…
Reference in a new issue