diff --git a/conf/nginx.conf b/conf/nginx.conf index 13d7d68..5eed09a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,6 +8,7 @@ location __PATH__/ { client_body_timeout 60m; proxy_read_timeout 60m; fastcgi_read_timeout 60m; + client_max_body_size 50M; try_files $uri @__NAME__; diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 92164b8..2670862 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -390,3 +390,7 @@ catch_workers_output = yes ;php_admin_value[error_log] = /var/log/fpm-php.www.log ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M + +php_admin_value[max_execution_time] = 3600 +php_admin_value[upload_max_filesize] = 50M +php_admin_value[post_max_size] = 50M diff --git a/conf/php-fpm.ini b/conf/php-fpm.ini deleted file mode 100644 index 89e7572..0000000 --- a/conf/php-fpm.ini +++ /dev/null @@ -1 +0,0 @@ -max_execution_time=3600 \ No newline at end of file diff --git a/scripts/change_url b/scripts/change_url index 42dc935..9eaa619 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -122,9 +122,12 @@ download_images_enabled=$(ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" if [ "$download_images_enabled" = "1" ] ; then echo "Updating images URL; this operation may take a while..." # Query/replace the domain/path in every entry.content in mysql database - ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" <<< "UPDATE entry SET content = REPLACE(content, '$old_domain$old_path', '$new_domain$new_path');" + ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" <<< "UPDATE entry SET content = REPLACE(content, '$old_domain$old_path', '$new_domain$new_path');" fi +# Clear assets cache +ynh_secure_remove $final_path/var/cache + #================================================= # GENERIC FINALIZATION #=================================================