From 6a8b3c7ca90a51cbba85463911d4c7f072b75b71 Mon Sep 17 00:00:00 2001 From: Joshix Date: Fri, 16 Feb 2024 20:00:00 +0000 Subject: [PATCH] improve Elasticsearch configuration handling --- config/initializers/chewy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/chewy.rb b/config/initializers/chewy.rb index 0d9fc75e99..e92e3c9cde 100644 --- a/config/initializers/chewy.rb +++ b/config/initializers/chewy.rb @@ -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,