Set up SES mail delivery and harden the mailing list (#120)

* setup basic SES email sending

* basic honeypot form form submission
This commit is contained in:
2026-11-09 16:38:55 +01:00
committed by GitHub
parent 5b3241ae1f
commit cae4e35a70
23 changed files with 731 additions and 64 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ config :chesstrainer, :branding,
name: "Inner Square Chess",
wordmark: "INNERSQUARE",
tagline: "Endgame Trainer",
support_email: "support@lucidchess.app"
support_email: "support@innersquare.app",
mail_from: "no-reply@innersquare.app"
config :chesstrainer, :scopes,
user: [
+12
View File
@@ -101,6 +101,18 @@ if config_env() == :prod do
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
config :chesstrainer, Chesstrainer.Mailer,
adapter: Swoosh.Adapters.AmazonSES,
region:
System.get_env("SES_REGION") ||
raise("environment variable SES_REGION is missing"),
access_key:
System.get_env("SES_ACCESS_KEY_ID") ||
raise("environment variable SES_ACCESS_KEY_ID is missing"),
secret:
System.get_env("SES_SECRET_ACCESS_KEY") ||
raise("environment variable SES_SECRET_ACCESS_KEY is missing")
config :chesstrainer, Chesstrainer.Repo,
# ssl: true,
url: database_url,