Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,12 @@ function drupal_get_env(string|array $variables) : mixed {
$config['helfi_search.settings']['openai_model'] = getenv('OPENAI_MODEL');
}

// Hakuvahti:
if (getenv('HAKUVAHTI_URL')) {
$config['helfi_hakuvahti.settings']['base_url'] = getenv('HAKUVAHTI_URL');
$config['helfi_hakuvahti.settings']['api_key'] = getenv('HAKUVAHTI_API_KEY');
}

// E2E test users. We should never do this in production, so adding a failsafe
// in case the environment variable would ever end up in production.
if (getenv('APP_ENV') !== 'production' && $e2e_test_user = getenv('E2E_TEST_USER')) {
Expand Down