Skip to content

Commit

Permalink
Update elasticsearch settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Nov 4, 2024
1 parent 522b395 commit 9ad2d4b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@

// Elasticsearch settings.
if (getenv('ELASTICSEARCH_URL')) {
$config['elasticsearch_connector.cluster.kymp']['url'] = getenv('ELASTICSEARCH_URL');
$config['search_api.server.elastic_rekry']['backend_config']['connector_config']['url'] = getenv('ELASTICSEARCH_URL');

if (getenv('ELASTIC_USER') && 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');
$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');
}
}
// Elastic proxy URL.
Expand Down

0 comments on commit 9ad2d4b

Please sign in to comment.