Skip to content

Commit

Permalink
UHF-9124: Add support for BLOBSTORAGE_ACCOUNT_KEY and BLOBSTORAGE_SAS…
Browse files Browse the repository at this point in the history
…_TOKEN env variables
  • Loading branch information
tuutti committed Oct 10, 2023
1 parent 049f270 commit 0b7b796
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,14 @@ function drupal_get_env(string|array $variables) : mixed {
'driver' => 'helfi_azure',
'config' => [
'name' => $blob_storage_name,
'key' => getenv('AZURE_BLOB_STORAGE_KEY'),
'token' => getenv('AZURE_BLOB_STORAGE_SAS_TOKEN'),
'key' => drupal_get_env([
'AZURE_BLOB_STORAGE_KEY',
'BLOBSTORAGE_ACCOUNT_KEY',
]),
'token' => drupal_get_env([
'AZURE_BLOB_STORAGE_SAS_TOKEN',
'BLOBSTORAGE_SAS_TOKEN',
]),
'container' => getenv('AZURE_BLOB_STORAGE_CONTAINER'),
'endpointSuffix' => 'core.windows.net',
'protocol' => 'https',
Expand Down

0 comments on commit 0b7b796

Please sign in to comment.