30 lines
936 B
Elixir
30 lines
936 B
Elixir
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"]
|
|
]
|
|
|
|
# Serve custom theme files as static assets
|
|
config :asciinema, AsciinemaWeb.Endpoint,
|
|
static_url: [path: "/theme"],
|
|
check_origin: false
|
|
|
|
# Try to inject custom head HTML (if supported by asciinema)
|
|
config :asciinema, AsciinemaWeb.Endpoint,
|
|
extra_head_html: """
|
|
<link rel="stylesheet" href="/theme/custom.css">
|
|
<link rel="icon" type="image/svg+xml" href="/theme/favicon.svg">
|
|
"""
|