Skip to content

Commit

Permalink
Workaround for HTTPS access using elasticsearch-ruby.
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarla committed Nov 9, 2021
1 parent cd5c672 commit 4ec9ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/chewy.rb
Expand Up @@ -5,7 +5,7 @@
prefix = ENV.fetch('ES_PREFIX') { fallback_prefix }

Chewy.settings = {
host: "#{host}:#{port}",
host: port == 443 ? "https://#{host}:#{port}" : "#{host}:#{port}",
prefix: prefix,
enabled: enabled,
journal: false,
Expand Down

0 comments on commit 4ec9ebb

Please sign in to comment.