From 7c885c4e7fd35e589d172665756b2703d5ad39ab Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Tue, 9 Aug 2022 19:43:01 -0400 Subject: [PATCH] fix --- conf/nginx.conf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 27c6ec7..67a339c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { proxy_pass http://127.0.0.1:__PORT__; proxy_redirect off; @@ -14,13 +13,11 @@ location __PATH__/ { include conf.d/yunohost_panel.conf.inc; } -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/static { +location /static { alias __FINALPATH__/staticfiles; } -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/media { +location /media { alias __DATADIR__; }