diff --git a/conf/config.php b/conf/config.php index 3a4cb0f..92d55c5 100644 --- a/conf/config.php +++ b/conf/config.php @@ -39,7 +39,7 @@ $edit_files = true; // Default timezone for date() and time() // Doc - http://php.net/manual/en/timezones.php -$default_timezone = 'Etc/UTC'; // UTC +$default_timezone = '__TIMEZONE__'; // UTC // Root path for file manager // use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder' @@ -94,7 +94,7 @@ $sticky_navbar = true; // max upload file size -$max_upload_size_bytes = 5000; +$max_upload_size_bytes = 10000; // Possible rules are 'OFF', 'AND' or 'OR' // OFF => Don't check connection IP, defaults to OFF diff --git a/conf/nginx.conf b/conf/nginx.conf index df9bbf4..dda980f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,7 @@ location __PATH__/ { # Path to source alias __FINALPATH__/ ; - index index.php; + index index.php tinyfilemanager.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 10G; diff --git a/scripts/install b/scripts/install index f764462..f6e4100 100755 --- a/scripts/install +++ b/scripts/install @@ -30,7 +30,8 @@ is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE admin=$YNH_APP_ARG_ADMIN password=$YNH_APP_ARG_PASSWORD -# phpversion=$YNH_PHP_VERSION +timezone="$(cat /etc/timezone)" +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME @@ -76,10 +77,6 @@ ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= ynh_script_progression --message="Setting up source files..." --time --weight=1 -### `ynh_setup_source` is used to install an app from a zip or tar.gz file, -### downloaded from an upstream source, like a git repository. -### `ynh_setup_source` use the file conf/app.src - ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" @@ -88,9 +85,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -# rename tinyfilemanager to index -sudo mv $final_path/tinyfilemanager.php $final_path/index.php - #================================================= # NGINX CONFIGURATION #=================================================