]> cat aescling's git repositories - mastodon.git/commitdiff
Fix search not working due to proxy settings when using hidden services (#13488)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 17 Apr 2020 13:14:24 +0000 (15:14 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 13:14:24 +0000 (15:14 +0200)
Fix #13484

config/initializers/chewy.rb

index 9ff0dccc1b499042ec80560fa23fcc2d6d46b3d9..18d2f18c1feefff1c9fa9f03761988f26b15f125 100644 (file)
@@ -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