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