tags : Notetaking, Learning How to learn, General Programming
Web stuff
Custom domain for a website
- This is a issue that’s bugging me for years now
- The ultimate guide to custom domains for your SaaS app
- It basically boils down to
- They CNAME their domain to your subdomain(CNAME)
- In your application you need to handle based on domain/host field
- Maintain a db of custom domain and user to serve correct content.
- TLS management is a problem, caddy probably helps(ondemandtls) w it but cloudflare has a sass solution, more info
- Relevant discussions
- It’s called multi tenant apps: https://demo.vercel.pub/platforms-starter-kit
- https://github.com/orgs/vercel/discussions/31
- Has anyone ever implemented custom domains for their customers? : SaaS
- Custom domain on a multi-tenant SAAS app : laravel
- dns - How do I enable custom domains for my users? - Stack Overflow
- How do you allow users to add a custom domain?
- From ALB to Caddy - Our Wandering Path to Supporting Thousands of Domain Names