From 4c122718c7d945f51574a38188b0051a7a2ffe98 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 1 Feb 2021 18:19:12 +0100 Subject: [PATCH] Fix --- conf/nginx.conf | 2 +- scripts/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c465582..1d6cd66 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -32,7 +32,7 @@ location __PATH__/ { } location @__NAME__ { - rewrite ^__PATH__/(.*)$ __PATH__/index.php?/$1 last; + rewrite ^__PATH__/(.*)$ __PATH__/api/index.php?/$1 last; } location __PATH__/api { diff --git a/scripts/install b/scripts/install index fd9969b..b08f5bf 100644 --- a/scripts/install +++ b/scripts/install @@ -95,7 +95,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) # Set permissions to app files chown -R $app: $final_path -chmod -R 755 $final_path/api +chmod -R 777 $final_path/api #================================================= # INTEGRATE SERVICE IN YUNOHOST