Merge branch 'fix/docker-mail-tls' into 'main'

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

Closes #1352

See merge request framasoft/mobilizon!1456
This commit is contained in:
Thomas Citharel 2023-09-19 11:31:36 +00:00
commit daa68533d5
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -55,7 +55,7 @@ config :mobilizon, Mobilizon.Web.Email.Mailer,
verify: :verify_peer,
versions: [:"tlsv1.2", :"tlsv1.3"],
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
],
ssl: System.get_env("MOBILIZON_SMTP_SSL", "false"),