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 5a7c87a commit ac52e5a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@
* Contains site specific overrides.
*/

// Client ID for Helbit integration.
$config['helfi_rekry_content.settings']['helbit_client_id'] = getenv('HELBIT_CLIENT_ID');

// Elasticsearch settings.
if (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['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.
$config['elastic_proxy.settings']['elastic_proxy_url'] = getenv('ELASTIC_PROXY_URL');

Expand Down

0 comments on commit ac52e5a

Please sign in to comment.