diff --git a/images/php/settings.php b/images/php/settings.php index 1b3b6640..a36ba07a 100755 --- a/images/php/settings.php +++ b/images/php/settings.php @@ -347,7 +347,7 @@ } // Override data_pipelines url. -$config['data_pipelines.dataset_destination.sdp_elasticsearch']['destinationSettings']['url'] = getenv('SEARCH_URL') ? sprintf('https://%s', getenv('SEARCH_URL')) : "http://elasticsearch:9200"; +$config['data_pipelines.dataset_destination.sdp_elasticsearch']['destinationSettings']['url'] = (getenv('SEARCH_HASH') && getenv('SEARCH_URL')) ? sprintf('https://%s.%s', getenv('SEARCH_HASH'), getenv('SEARCH_URL')) : "http://elasticsearch:9200"; // Configure tide_logs. if (getenv('TIDE_LOGS_UDPLOG_HOST')) {