feat: add custom.exs to skip SMTP TLS certificate verification

This commit is contained in:
2025-11-09 08:18:13 +01:00
parent 5a6ca58e5d
commit 5f126d9d8b
2 changed files with 19 additions and 1 deletions

17
asciinema/custom.exs Normal file
View File

@@ -0,0 +1,17 @@
import Config
# Configure Swoosh SMTP adapter to skip TLS certificate verification
# This is needed for IONOS SMTP server which has certificate key usage issues
config :asciinema, Asciinema.Emails.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.get_env("SMTP_HOST"),
username: System.get_env("SMTP_USERNAME"),
password: System.get_env("SMTP_PASSWORD"),
port: System.get_env("SMTP_PORT") || 587,
tls: :always,
auth: :always,
ssl: false,
tls_options: [
verify: :verify_none,
versions: [:"tlsv1.2", :"tlsv1.3"]
]