Skip to content

Commit

Permalink
http proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Jan 4, 2025
1 parent f862e36 commit b9449a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Bonfire.Common.HTTP.Connection do
]

def new(opts \\ []) do
adapter = Application.get_env(:tesla, :adapter, {Tesla.Adapter.Finch, name: Bonfire.Finch})
adapter = Application.get_env(:tesla, :adapter) || {Tesla.Adapter.Finch, name: Bonfire.Finch}
Tesla.client([], adapter_options(adapter, Keyword.get(opts, :adapter, [])))
end

Expand Down
2 changes: 1 addition & 1 deletion lib/runtime_config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Bonfire.Common.RuntimeConfig do
root_path: File.cwd!()

config :bonfire, :http,
proxy_url: System.get_env("HTTP_PROXY_URL", nil),
proxy_url: System.get_env("HTTP_PROXY_URL"),
adapter_options: [
ssl_options: [
# Workaround for remote server certificate chain issues
Expand Down

0 comments on commit b9449a3

Please sign in to comment.