From b9af1c949fb51b71188298685fae03c7376bb30a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 30 Aug 2021 17:35:00 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 2 ++ scripts/install | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1ffdffd..66a5775 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,6 +13,8 @@ location __PATH__/ { client_max_body_size 100M; client_body_buffer_size 128k; + proxy_set_header Authorization $http_authorization; + proxy_pass_header Authorization; try_files $uri $uri/ @__NAME__; diff --git a/scripts/install b/scripts/install index c4f14ed..a46ce18 100644 --- a/scripts/install +++ b/scripts/install @@ -70,7 +70,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_setup_source --dest_dir="$final_path" chmod 750 "$final_path" -chmod 766 "$final_path/api" +chmod 777 "$final_path/api" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"