Configure custom domains for Temps deployments with automatic SSL/TLS certificates via Let's Encrypt. Supports HTTP-01 and DNS-01 challenges, wildcard domains, and Cloudflare DNS integration. Use when the user wants to: (1) Add a custom domain to their Temps app, (2) Set up SSL certificates, (3) Configure DNS for Temps, (4) Add a wildcard domain, (5) Set up HTTPS for their deployment, (6) Configure Cloudflare with Temps. Triggers: "custom domain", "add domain", "ssl certificate", "https setup", "wildcard domain", "dns configuration", "cloudflare temps".
Configure custom domains with automatic SSL/TLS certificates.
app.example.com)Add a CNAME record pointing to your Temps deployment:
| Type | Name | Value |
|---|---|---|
| CNAME | app | your-project.temps.io |
For apex domains (example.com without subdomain), use an A record:
| Type | Name | Value |
|---|---|---|
| A | @ | [Temps IP address] |
Temps automatically:
Used for standard domains. Temps handles automatically.
Requirements:
Required for wildcard domains (*.example.com).
Setup with Cloudflare:
Add Cloudflare API token in Temps:
Add wildcard domain:
*.example.com
Temps creates DNS TXT record automatically
For *.example.com to match app.example.com, api.example.com, etc:
Create API Token:
Add to Temps:
Settings > DNS Providers > Add Cloudflare
- API Token: [your-token]
- Zone ID: [from Cloudflare domain overview]
Add Wildcard Domain:
*.example.com
app.example.com -> CNAME -> your-project.temps.io
example.com -> A -> [Temps IP]
Or with Cloudflare (CNAME flattening):
example.com -> CNAME -> your-project.temps.io (proxied)
*.example.com -> CNAME -> your-project.temps.io
Temps automatically renews certificates 30 days before expiration.
Check certificate status in Dashboard > Domains:
If needed, manually trigger renewal:
Add multiple domains to the same project:
app.example.com -> Production
staging.example.com -> Staging
api.example.com -> API routes
Each domain gets its own certificate.
Add both domains and configure redirect:
example.com (primary)www.example.com (redirect)www.example.com to redirect to example.comAutomatic - all HTTP requests redirect to HTTPS.
DNS not propagating?
dig app.example.comCertificate stuck pending?
Wildcard not working?
SSL certificate errors?
https://app.example.comcurl -X POST https://your-temps.com/api/projects/123/domains \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"domain": "app.example.com"}'
curl https://your-temps.com/api/projects/123/domains \
-H "Authorization: Bearer $TOKEN"
curl -X DELETE https://your-temps.com/api/projects/123/domains/456 \
-H "Authorization: Bearer $TOKEN"