From 8bdce2ecaf4ca8f5b15a60095b051be46d558ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 21 Dec 2020 14:56:26 +0100 Subject: [PATCH] Add session.cookie_httponly, and a default timezone --- conf/php-fpm.conf | 3 +++ scripts/install | 2 ++ scripts/upgrade | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) 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 c320bb3..5263bad 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -172,7 +172,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