diff --git a/conf/nginx.conf b/conf/nginx.conf index ba230ca..09cca21 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,5 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location ^~ __PATH__/ { # Path to source alias __FINALPATH__/; @@ -65,7 +65,10 @@ location __PATH__/ { } ## properly display textfiles in root directory - location ~/(.*\.md|LEGALNOTICE|LICENSE) { + location ~__PATH__/(.*\.md|LEGALNOTICE|LICENSE) { default_type text/plain; } + + # show YunoHost panel access + include conf.d/yunohost_panel.conf.inc; }