Building Multi-Tenant SaaS with Rails 8, Caddy, and Kamal
ruby
dev.to
After publishing the Kamal deployment guide, the most common question was: "How do I handle multiple tenant domains with automatic SSL?" kamal-proxy can't do it — every new domain means editing deploy.yml and redeploying. So I wrote a guide that solves it end-to-end. What it covers: Why kamal-proxy's SSL doesn't scale for multi-tenant apps Running Caddy as a Kamal accessory for on-demand TLS The /internal/tls/verify endpoint — Caddy asks Rails before issuing any cert Subdomain data model, va