diff --git a/images/bay-php/settings.php b/images/bay-php/settings.php index b5c5e629..6e87f321 100755 --- a/images/bay-php/settings.php +++ b/images/bay-php/settings.php @@ -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'; @@ -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');