Skip to content

Commit

Permalink
UHF-10549: Move elasticsearch settings to settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Dec 2, 2024
1 parent 136b317 commit 8646178
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@
'sql_mode' => 'SET sql_mode="STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_ENGINE_SUBSTITUTION"',
];

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

if (getenv('ELASTIC_USER') && getenv('ELASTIC_PASSWORD')) {
$config['search_api.server.elastic_kasko']['backend_config']['connector'] = 'basicauth';
$config['search_api.server.elastic_kasko']['backend_config']['connector_config']['username'] = getenv('ELASTIC_USER');
$config['search_api.server.elastic_kasko']['backend_config']['connector_config']['password'] = getenv('ELASTIC_PASSWORD');
}
}

// Elastic proxy URL.
$config['elastic_proxy.settings']['elastic_proxy_url'] = getenv('ELASTIC_PROXY_URL');

Expand Down

0 comments on commit 8646178

Please sign in to comment.