fix: force proxy usage if var available

Otherwise faraday call [find_proxy](https://rubyapi.org/3.3/o/uri/generic#method-i-find_proxy) to guess if a proxy is setup by env var. find_proxy check if the adress is local before calling the proxy by using a dns query which causes a timeout.
This commit is contained in:
simon lehericey 2024-03-14 10:07:00 +01:00
parent 83ec136a2d
commit c25a78f268

View file

@ -1,3 +1,7 @@
OpenIDConnect.http_config do |config|
config.response :jwt
if ENV['http_proxy'].present?
config.proxy = ENV['http_proxy']
end
end