Transactional mail, crawler metadata, and asset measurement (#179)

* Send transactional email from no-reply@mail.innersquare.app

Centralise the sender identity, reply-to address and SES configuration set in Chesstrainer.Mail so no notifier can drift. Add MAIL_REDIRECT_TO for smoke tests and a mix mail.check task that exercises the SES mailbox simulators, and document the setup in the deploy guide and .env.example.

* Tighten crawler metadata and keep play pages out of search

Canonical URLs no longer carry query strings, public pages get an OG image, WebSite JSON-LD and a per-page language, and the sitemap dates the landing page only. Play and guest-training routes are marked noindex so tens of thousands of near-identical pages stay out of the index.

* Measure built asset sizes with mix assets.sizes

Report raw, gzip and brotli sizes for built JS and CSS, and record the current numbers plus the board-code split recommendation in docs/assets.md.
This commit is contained in:
2026-11-17 10:29:45 +01:00
committed by GitHub
parent b33c5e334a
commit 37e0ac8e56
24 changed files with 666 additions and 44 deletions
+18
View File
@@ -28,6 +28,24 @@ if mailing_list_enabled = System.get_env("MAILING_LIST_ENABLED") do
config :chesstrainer, :mailing_list_enabled, mailing_list_enabled in ~w(true 1)
end
# Sender address override. The default lives in config/config.exs; this lets a
# deploy try a different From address (for example a new sending subdomain)
# without a rebuild.
if mail_from = System.get_env("MAIL_FROM") do
branding = Application.get_env(:chesstrainer, :branding, [])
config :chesstrainer, :branding, Keyword.put(branding, :mail_from, mail_from)
end
# SES configuration set stamped on every outgoing email. The set is what links
# a message to its SNS bounce and complaint notifications.
config :chesstrainer,
:ses_configuration_set,
System.get_env("SES_CONFIGURATION_SET", "my-first-configuration-set")
# Rewrite every recipient to one address while testing. Leave unset in normal
# operation; see `mix mail.check`.
config :chesstrainer, :mail_redirect_to, System.get_env("MAIL_REDIRECT_TO")
# Local Syzygy tablebases: set TABLEBASE_PATH to the directory holding the
# .rtbw/.rtbz files. When unset, the local backend stays disabled and lookups
# fall back to Lichess.