Skip to content

Commit

Permalink
Also fallback to new HEX_CACERTS_PATH (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Sep 30, 2024
1 parent b01e0da commit b2c7e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bumblebee/utils/http.ex
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ defmodule Bumblebee.Utils.HTTP do
defp http_ssl_opts() do
# Allow a user-specified CA certs to support, for example, HTTPS proxies
cacert_opt =
case System.get_env("BUMBLEBEE_CACERTS_PATH") do
case System.get_env("BUMBLEBEE_CACERTS_PATH") || System.get_env("HEX_CACERTS_PATH") do
nil -> {:cacerts, :public_key.cacerts_get()}
file -> {:cacertfile, file}
end
Expand Down

0 comments on commit b2c7e36

Please sign in to comment.