From 23bc2e58c9bce6da3425c43ec07603e3436af5a0 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 4 Nov 2024 09:09:58 +0200 Subject: [PATCH] Revert "Update elasticsearch settings" This reverts commit 9ad2d4b0a9fc8dbfec9fd03eb17947b7c759c413. --- public/sites/default/all.settings.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/sites/default/all.settings.php b/public/sites/default/all.settings.php index e07af3ba0..0ac7a394d 100644 --- a/public/sites/default/all.settings.php +++ b/public/sites/default/all.settings.php @@ -7,12 +7,13 @@ // Elasticsearch settings. if (getenv('ELASTICSEARCH_URL')) { - $config['search_api.server.elastic_rekry']['backend_config']['connector_config']['url'] = getenv('ELASTICSEARCH_URL'); + $config['elasticsearch_connector.cluster.kymp']['url'] = getenv('ELASTICSEARCH_URL'); if (getenv('ELASTIC_USER') && getenv('ELASTIC_PASSWORD')) { - $config['search_api.server.elastic_rekry']['backend_config']['connector'] = 'basicauth'; - $config['search_api.server.elastic_rekry']['backend_config']['connector_config']['username'] = getenv('ELASTIC_USER'); - $config['search_api.server.elastic_rekry']['backend_config']['connector_config']['password'] = getenv('ELASTIC_PASSWORD'); + $config['elasticsearch_connector.cluster.kymp']['options']['use_authentication'] = '1'; + $config['elasticsearch_connector.cluster.kymp']['options']['authentication_type'] = 'Basic'; + $config['elasticsearch_connector.cluster.kymp']['options']['username'] = getenv('ELASTIC_USER'); + $config['elasticsearch_connector.cluster.kymp']['options']['password'] = getenv('ELASTIC_PASSWORD'); } } // Elastic proxy URL.