diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 6adfb01..53058cf 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -431,3 +431,6 @@ chdir = __FINALPATH__ php_admin_value[upload_max_filesize] = 10G php_admin_value[post_max_size] = 10G + +php_admin_value[session.cookie_httponly] = 1 +php_admin_value[date.timezone] = __TIMEZONE__ diff --git a/scripts/install b/scripts/install index 6907e1f..b06c0a6 100644 --- a/scripts/install +++ b/scripts/install @@ -121,6 +121,8 @@ ynh_replace_string --match_string="__ADMINMAIL__" --replace_string=$admin_mail - ynh_replace_string --match_string="__LANGUAGE__" --replace_string=$language --target_file="$config" ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --target_file="$config" ynh_replace_string --match_string="__PATH__" --replace_string=$path_url --target_file="$config" +timezone="$(cat /etc/timezone)" +ynh_replace_string --match_string="__TIMEZONE__" --replace_string=$timezone --target_file="$config" # Calculate and store the config file checksum into the app settings ynh_store_file_checksum --file="$config" diff --git a/scripts/upgrade b/scripts/upgrade index d8f3d6b..8191ecf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -165,7 +165,8 @@ then ynh_replace_string --match_string="__LANGUAGE__" --replace_string=$language --target_file="$config" ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --target_file="$config" ynh_replace_string --match_string="__PATH__" --replace_string=$path_url --target_file="$config" - + timezone="$(cat /etc/timezone)" + ynh_replace_string --match_string="__TIMEZONE__" --replace_string=$timezone --target_file="$config" # Calculate and store the config file checksum into the app settings ynh_store_file_checksum --file="$config" fi