diff --git a/conf/nginx.conf b/conf/nginx.conf
index 3e0b07e..ce1c088 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -13,7 +13,7 @@ location __PATH__/ {
index example-singleServer-full.html index.php;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
- client_max_body_size 50M;
+ client_max_body_size 500M;
try_files $uri $uri/ /index.php;
location ~ [^/]\.php(/|$) {
diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf
index b4c2372..573704e 100644
--- a/conf/php-fpm.conf
+++ b/conf/php-fpm.conf
@@ -419,8 +419,8 @@ chdir = __FINALPATH__
;php_admin_value[memory_limit] = 32M
; Common values to change to increase file upload limit
-php_admin_value[upload_max_filesize] = 50M
-php_admin_value[post_max_size] = 50M
+php_admin_value[upload_max_filesize] = 500M
+php_admin_value[post_max_size] = 500M
; php_admin_flag[mail.add_x_header] = Off
; Other common parameters
diff --git a/scripts/install b/scripts/install
index 3eb7d9c..3a69c43 100755
--- a/scripts/install
+++ b/scripts/install
@@ -172,6 +172,7 @@ ynh_replace_string --match_string="MySql_databasename = 'DB_NAME'" --replace_str
ynh_replace_string --match_string="MySql_hostname = 'DB_HOSTNAME'" --replace_string="MySql_hostname = 'localhost'" --target_file="$conf_telemetry"
ynh_replace_string --match_string='TO BE FILLED BY DEVELOPER.' --replace_string=''$mail'.' --target_file="$conf_index"
+ynh_replace_string --match_string='LibreSpeed Example' --replace_string='LibreSpeed YunoHost' --target_file="$conf_index"
#=================================================
# GENERIC FINALIZATION
diff --git a/scripts/upgrade b/scripts/upgrade
index ee45f91..c46bb49 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -110,8 +110,6 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
-mv $final_path/'example-singleServer-full.html' "$final_path/index.html"
-
#=================================================
# NGINX CONFIGURATION
#=================================================
@@ -142,14 +140,16 @@ then
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
- rc_conf="$final_path/results/telemetry_settings.php"
+ conf_telemetry="$final_path/results/telemetry_settings.php"
+ conf_index="$final_path/example-singleServer-full.html"
- ynh_replace_string --match_string="stats_password = 'PASSWORD'" --replace_string="stats_password = '$password'" --target_file="$rc_conf"
- ynh_replace_string --match_string="USERNAME" --replace_string="$db_user" --target_file="$rc_conf"
- ynh_replace_string --match_string="MySql_password = 'PASSWORD'" --replace_string="MySql_password = '$db_pwd'" --target_file="$rc_conf"
- ynh_replace_string --match_string="DB_NAME" --replace_string="$db_name" --target_file="$rc_conf"
- ynh_replace_string --match_string="DB_HOSTNAME" --replace_string="localhost" --target_file="$rc_conf"
- ynh_replace_string --match_string="enable_id_obfuscation = false" --replace_string="enable_id_obfuscation = true" --target_file="$rc_conf"
+ ynh_replace_string --match_string="stats_password = 'PASSWORD'" --replace_string="stats_password = '$password'" --target_file="$conf_telemetry"
+ ynh_replace_string --match_string="MySql_username = 'USERNAME'" --replace_string="MySql_username = '$db_user'" --target_file="$conf_telemetry"
+ ynh_replace_string --match_string="MySql_password = 'PASSWORD'" --replace_string="MySql_password = '$db_pwd'" --target_file="$conf_telemetry"
+ ynh_replace_string --match_string="MySql_databasename = 'DB_NAME'" --replace_string="MySql_databasename = '$db_name'" --target_file="$conf_telemetry"
+ ynh_replace_string --match_string="MySql_hostname = 'DB_HOSTNAME'" --replace_string="MySql_hostname = 'localhost'" --target_file="$conf_telemetry"
+
+ ynh_replace_string --match_string='TO BE FILLED BY DEVELOPER.' --replace_string=''$mail'.' --target_file="$conf_index"
fi