fix(docker): convert smtp tls sni to char list

Signed-off-by: Hugo Renard <hugo.renard@protonmail.com>
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Hugo Renard 2023-09-18 14:46:44 +02:00 committed by Thomas Citharel
parent 6797ceea4b
commit b3be7c6a20
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ config :mobilizon, Mobilizon.Web.Email.Mailer,
verify: :verify_peer, verify: :verify_peer,
versions: [:"tlsv1.2", :"tlsv1.3"], versions: [:"tlsv1.2", :"tlsv1.3"],
cacerts: :public_key.cacerts_get(), cacerts: :public_key.cacerts_get(),
server_name_indication: "localhost", server_name_indication: ~c"localhost",
depth: 99 depth: 99
], ],
retries: 1, retries: 1,

View File

@ -55,7 +55,7 @@ config :mobilizon, Mobilizon.Web.Email.Mailer,
verify: :verify_peer, verify: :verify_peer,
versions: [:"tlsv1.2", :"tlsv1.3"], versions: [:"tlsv1.2", :"tlsv1.3"],
cacerts: :public_key.cacerts_get(), cacerts: :public_key.cacerts_get(),
server_name_indication: System.get_env("MOBILIZON_SMTP_SERVER", "localhost"), server_name_indication: ~c"#{System.get_env("MOBILIZON_SMTP_SERVER", "localhost")}",
depth: 99 depth: 99
], ],
ssl: System.get_env("MOBILIZON_SMTP_SSL", "false"), ssl: System.get_env("MOBILIZON_SMTP_SSL", "false"),