From c9884ad30f0ae6aac2121a63bcb08737970980ed Mon Sep 17 00:00:00 2001 From: rungeard Date: Wed, 12 May 2021 18:30:29 +0200 Subject: [PATCH] move right place + change max upload size --- conf/nginx.conf | 2 +- scripts/install | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index df583e2..39d9c19 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,7 +13,7 @@ location __PATH__/ { index index.html; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + client_max_body_size 50M; try_files $uri $uri/ /index.php; location ~ [^/]\.php(/|$) { diff --git a/scripts/install b/scripts/install index bd4cd43..44e44a1 100755 --- a/scripts/install +++ b/scripts/install @@ -121,9 +121,7 @@ ynh_setup_source --dest_dir="$final_path" mv $final_path/'example-singleServer-full.html' "$final_path/index.html" -chmod 750 "$final_path" -chown -R $app:www-data $final_path -chmod o-rwx $final_path + #================================================= @@ -176,7 +174,9 @@ ynh_replace_string --match_string="enable_id_obfuscation = false" --replace_stri #================================================= # GENERIC FINALIZATION #================================================= - +chmod 750 "$final_path" +chown -R $app:www-data $final_path +chmod o-rwx $final_path #================================================= # SETUP SSOWAT #=================================================