From 064ebab99821e07a1d5b172cee2407f188020e3f Mon Sep 17 00:00:00 2001 From: Nick Santamaria Date: Wed, 20 Sep 2023 15:53:57 +1000 Subject: [PATCH] Update settings.php --- images/bay-php/settings.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/bay-php/settings.php b/images/bay-php/settings.php index b5c5e629..a3917af6 100755 --- a/images/bay-php/settings.php +++ b/images/bay-php/settings.php @@ -257,9 +257,11 @@ } else { $settings['file_temp_path'] = getenv("TMPDIR") ?: "/tmp"; } - // Hash Salt. -$settings['hash_salt'] = hash('sha256', getenv('LAGOON_PROJECT')); +$settings['hash_salt'] = getenv('DRUPAL_HASH_SALT'); +if (empty($settings['hash_salt'])) { + throw new \Exception('DRUPAL_HASH_SALT missing.'); +} // Configure platformwide cache tag blacklists. // These will be excluded when Drupal outputs the cache tag list