Skip to content

Commit

Permalink
Merge pull request #338 from City-of-Helsinki/UHF-9392
Browse files Browse the repository at this point in the history
UHF-9392: Deployment preflight checks
  • Loading branch information
tuutti authored Feb 2, 2024
2 parents 191ddb3 + 9d22362 commit ac1c9a0
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,24 @@
* Contains site specific overrides.
*/

if ($drush_options_uri = getenv('DRUSH_OPTIONS_URI')) {
if (str_contains($drush_options_uri, 'www.hel.fi')) {
$config['helfi_proxy.settings']['default_proxy_domain'] = 'www.hel.fi';
}
$additionalEnvVars = [
'AZURE_BLOB_STORAGE_SAS_TOKEN|BLOBSTORAGE_SAS_TOKEN',
'AZURE_BLOB_STORAGE_NAME',
'AZURE_BLOB_STORAGE_CONTAINER',
'DRUPAL_VARNISH_HOST',
'DRUPAL_VARNISH_PORT',
'PROJECT_NAME',
'DRUPAL_API_ACCOUNTS',
'DRUPAL_VAULT_ACCOUNTS',
'REDIS_HOST',
'REDIS_PORT',
'REDIS_PASSWORD',
'TUNNISTAMO_CLIENT_ID',
'TUNNISTAMO_CLIENT_SECRET',
'TUNNISTAMO_ENVIRONMENT_URL',
'SENTRY_DSN',
'SENTRY_ENVIRONMENT',
];
foreach ($additionalEnvVars as $var) {
$preflight_checks['environmentVariables'][] = $var;
}

0 comments on commit ac1c9a0

Please sign in to comment.