Fix :public_key.cacerts_load error
This commit is contained in:
parent
8b1598f8cc
commit
82e9493f44
|
@ -128,7 +128,7 @@ config :mobilizon, Mobilizon.Web.Email.Mailer,
|
||||||
tls_options: [
|
tls_options: [
|
||||||
verify: :verify_peer,
|
verify: :verify_peer,
|
||||||
versions: [:"tlsv1.2", :"tlsv1.3"],
|
versions: [:"tlsv1.2", :"tlsv1.3"],
|
||||||
cacerts: if :public_key.cacerts_load(System.get_env("SSL_CERT_FILE")) == :ok do
|
cacerts: if System.get_env("SSL_CERT_FILE") != nil and :public_key.cacerts_load(System.get_env("SSL_CERT_FILE")) == :ok do
|
||||||
:public_key.cacerts_get()
|
:public_key.cacerts_get()
|
||||||
end,
|
end,
|
||||||
server_name_indication: ~c"localhost",
|
server_name_indication: ~c"localhost",
|
||||||
|
|
Loading…
Reference in a new issue