From: jeff Date: Tue, 28 May 2019 06:49:53 +0000 (+0000) Subject: Respect proxy settings federation X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=9f3bcf0efe7fa06e2b8970386c099c1ea2974d0a;p=akkoma Respect proxy settings federation --- diff --git a/lib/pleroma/http/connection.ex b/lib/pleroma/http/connection.ex index 558005c19..c216cdcb1 100644 --- a/lib/pleroma/http/connection.ex +++ b/lib/pleroma/http/connection.ex @@ -32,9 +32,11 @@ defmodule Pleroma.HTTP.Connection do defp hackney_options(opts) do options = Keyword.get(opts, :adapter, []) adapter_options = Pleroma.Config.get([:http, :adapter], []) + proxy_url = Pleroma.Config.get([:http, :proxy_url], nil) @hackney_options |> Keyword.merge(adapter_options) |> Keyword.merge(options) + |> Keyword.merge(proxy: proxy_url) end end