mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
14 lines
367 B
PHP
14 lines
367 B
PHP
# Avoid the nginx path/alias traversal weakness ( #1037 )
|
|
rewrite ^/yunohost/admin$ /yunohost/admin/ permanent;
|
|
|
|
location /yunohost/admin/ {
|
|
alias /usr/share/yunohost/admin/;
|
|
default_type text/html;
|
|
index index.html;
|
|
|
|
# Short cache on handlebars templates
|
|
location ~* \.(?:ms)$ {
|
|
expires 5m;
|
|
add_header Cache-Control "public";
|
|
}
|
|
}
|