Skip to content

Commit

Permalink
UHF-9392: Deployment preflight checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Feb 1, 2024
1 parent b4adf06 commit bd1a9e5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,31 @@

// Sentry DSN for React.
$config['react_search.settings']['sentry_dsn_react'] = getenv('SENTRY_DSN_REACT');

$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',
// Project specific variables.
'ELASTIC_PROXY_URL',
'ELASTICSEARCH_URL',
'ELASTIC_USER',
'ELASTIC_PASSWORD',
'SENTRY_DSN_REACT',
];
foreach ($additionalEnvVars as $var) {
$preflight_checks['environmentVariables'][] = $var;
}

0 comments on commit bd1a9e5

Please sign in to comment.