Caddy: Custom Domains for SaaS
Building custom domains for your SaaS is not always easy, especially when certificates get involved.
With Caddy it becomes very easy!
On The Caddy Side { email dns@marco.ninja # Caddy asks this endpoint if it shall handle traffic for a domain on_demand_tls { ask https://backend.local/internal/custom-domain-check/ } } # Accept all domains that pass the ask endpoint https:// { tls { on_demand } handle /.well-known/health { respond "200 OK" 200 } reverse_proxy https://backend.
[Read More]