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:
parent
83ec136a2d
commit
c25a78f268
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
OpenIDConnect.http_config do |config|
|
OpenIDConnect.http_config do |config|
|
||||||
config.response :jwt
|
config.response :jwt
|
||||||
|
|
||||||
|
if ENV['http_proxy'].present?
|
||||||
|
config.proxy = ENV['http_proxy']
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue