From f322eb70974837a4505526f737ed859c925f3421 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 20 Aug 2021 17:33:43 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index d04ffea..665ba1c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Path to source alias __FINALPATH__/ ; @@ -9,7 +8,7 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - try_files $uri $uri/ __PATH__/; + try_files $uri $uri/ /; index index.html index.htm; @@ -17,7 +16,7 @@ location __PATH__/ { include conf.d/yunohost_panel.conf.inc; } -location __PATH__/(api|dav|\.well-known)/ { +location ~* ^/(api|dav|\.well-known)/ { proxy_pass http://127.0.0.1:__PORT__; client_max_body_size 20M; }