Skip to content

Commit

Permalink
[R20-1508] Added datapipeline env vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
MdNadimHossain committed Sep 26, 2023
1 parent 78e50df commit 2d372da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions images/bay-php/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@
// The default number of entities to update in a batch process.
$settings['entity_update_batch_size'] = 50;

// The token for the bay_monitoring Healthz endpoint.
$settings['baywatch.healthz_key'] = getenv('BAY_HEALTHZ_TOKEN');

// Environment indicator settings.
$config['environment_indicator.indicator']['name'] = isset($settings['environment']) ? $settings['environment'] : 'local';
$config['environment_indicator.indicator']['bg_color'] = !empty($config['environment_indicator.indicator']['bg_color']) ? $config['environment_indicator.indicator']['bg_color'] : 'green';
Expand Down Expand Up @@ -343,6 +340,11 @@
$config['elasticsearch_connector.cluster.elasticsearch_bay']['options']['use_authentication'] = 0;
}

// Override data_pipelines url.
if (isset($config['data_pipelines.dataset_destination.sdp_elasticsearch']['destinationSettings']['url'])) {
$config['data_pipelines.dataset_destination.sdp_elasticsearch']['destinationSettings']['url'] = (getenv('SEARCH_HASH') && getenv('SEARCH_URL')) ? sprintf('http://%s.%s', getenv('SEARCH_HASH'), getenv('SEARCH_URL')) : "http://elasticsearch:9200";
}

// Configure tide_logs.
if (getenv('TIDE_LOGS_UDPLOG_HOST')) {
$config['tide_logs.settings']['host'] = getenv('TIDE_LOGS_UDPLOG_HOST');
Expand Down

0 comments on commit 2d372da

Please sign in to comment.