improve Elasticsearch configuration handling

This commit is contained in:
Joshix 2024-02-16 20:00:00 +00:00
parent 96ddf1d482
commit 6a8b3c7ca9
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ ca_file = ENV.fetch('ES_CA_FILE', nil).presence
transport_options = { ssl: { ca_file: ca_file } } if ca_file.present?
Chewy.settings = {
host: "#{host}:#{port}",
host: host,
port: port.to_i,
prefix: prefix,
enabled: enabled,
journal: false,