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"