From f12c5ce18dfdf87ed9447257a7846409dd490015 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 17 May 2021 23:36:32 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }