mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
simplify nginx
This commit is contained in:
parent
7817df46ce
commit
fe753d3b36
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
# https://github.com/WeblateOrg/weblate/blob/master/examples/weblate.nginx.conf
|
# https://github.com/WeblateOrg/weblate/blob/master/examples/weblate.nginx.conf
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue