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__; }