From: Eugen Rochko Date: Fri, 17 Apr 2020 13:14:24 +0000 (+0200) Subject: Fix search not working due to proxy settings when using hidden services (#13488) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=d18d6c29f38cb9830b900ed1e7068518f41b9b26;p=mastodon.git Fix search not working due to proxy settings when using hidden services (#13488) Fix #13484 --- diff --git a/config/initializers/chewy.rb b/config/initializers/chewy.rb index 9ff0dccc1..18d2f18c1 100644 --- a/config/initializers/chewy.rb +++ b/config/initializers/chewy.rb @@ -23,3 +23,9 @@ module Chewy end end end + +# ElasticSearch uses Faraday internally. Faraday interprets the +# http_proxy env variable by default which leads to issues when +# Mastodon is run with hidden services enabled, because +# ElasticSearch is *not* supposed to be accessed through a proxy +Faraday.ignore_env_proxy = true