DocsDomains & networkingCustom Domains

Custom domains

Every web service and static site gets a free muerte.app URL, but production traffic usually lives on your own domain. This page covers adding a domain, the DNS records to publish, how TLS certificates are issued, and what to do about apex, subdomain, wildcard and proxied setups.

A custom domain is attached to a service. Muerte Cloud verifies DNS and requests a Let’s Encrypt certificate. A linked domain does not by itself confirm certificate readiness; check HTTPS separately. There is no charge for domains or certificates.

Default URL keeps working
Adding a custom domain doesn't retire the built-in <name>.muerte.app URL. Both resolve to the same service and share the same TLS pipeline — handy for health checks, webhooks and internal tooling.

Adding a domain#

  1. 1
    Open the service's Settings tab
    Scroll to Custom domains and click Add domain.
  2. 2
    Enter the hostname
    Type the exact hostname you want to serve — example.com, www.example.com or api.example.com. Add subdomains one by one; wildcards are configured separately (see below).
  3. 3
    Publish the DNS records shown
    For the root domain, use Cloudflare CNAME flattening with DNS only or ALIAS/ANAME if your provider supports an external hostname. For ALIAS/ANAME or CNAME flattening, also add the fresh ownership TXT token shown for this binding.
  4. 4
    Wait for verification
    Click Check after DNS updates. Linked confirms the domain binding, not HTTPS certificate readiness. Propagation time depends on the DNS provider, TTL and caches.

DNS records#

Which record you publish depends on whether the hostname is an apex domain (example.com) or a subdomain (www.example.com, api.example.com).

FieldDescription
SubdomainPublish a CNAME pointing at the service's default hostname, e.g. www CNAME my-service.muerte.app. TTL 300 is a good default.
Apex / rootFor example.com in Cloudflare, create CNAME @ pointing to the service hostname and choose DNS only. Root CNAME flattening works without the proxy. Elsewhere, use ALIAS/ANAME if external hostnames are supported.
DNS provider requirementsIf the provider cannot alias your root domain to an external hostname, choose a DNS provider with CNAME flattening or external ALIAS/ANAME support. You do not need to transfer your domain registration. MUERTE does not change nameservers automatically.
Check the exact hostname
Record names are shown in full. If your provider appends the zone, use @ for the root or a relative subdomain name. Remove conflicting records for the exact hostname so requests reach the intended service.

Example zone

text
; Cloudflare root CNAME flattening, Proxy status: DNS only
example.com.        300  IN  CNAME  my-service.muerte.app.

; for ALIAS/ANAME or CNAME flattening: token from the CURRENT domain binding
_muerte-verification.example.com. 300 IN TXT "muerte-verification=<current-binding-token>"

; an optional subdomain needs its own domain binding
www.example.com.    300  IN  CNAME  my-service.muerte.app.

TLS certificates#

Certificates are issued automatically by Let's Encrypt once ownership is verified, and rotated well before expiry. There is no certificate to upload and no key to rotate.

Managed rotation
Certificate renewal depends on the domain continuing to resolve correctly and certificate validation remaining available. Monitor expiry and verify HTTPS after DNS changes.
HTTP → HTTPS
Plain HTTP requests are permanently redirected to HTTPS. HSTS is opt-in per service.
TLS 1.2 and 1.3
Modern cipher suites only. Older TLS versions and weak ciphers are rejected at the edge.
SNI-only
Every request must present Server Name Indication. Clients from 2016 and later already do.
CAA records
If your zone has CAA records, they must allow letsencrypt.org. Missing this line is the single most common cause of a stuck Verifying state:
example.com. IN CAA 0 issue "letsencrypt.org"

Wildcards#

This connection flow accepts exact hostnames such as example.com or app.example.com. Wildcard domains require a separate ownership and certificate-validation flow; these instructions do not provide that setup.

Cloudflare with DNS only#

Cloudflare can host your DNS without proxying application traffic. For the root domain, choose CNAME flattening and DNS only (the grey cloud). Muerte Cloud does not enable the proxy automatically.

FieldDescription
Root domainCreate CNAME @ pointing to the service hostname. Cloudflare flattens this record without enabling the proxy.
OwnershipFor ALIAS/ANAME or CNAME flattening, add the fresh TXT token shown for this domain binding. A token from an older binding is not valid.
HTTPSKeep DNS only during setup. Domain linked confirms routing, not certificate readiness; wait for issuance and test the HTTPS URL separately.

Apex vs www redirects#

Add example.com and www.example.com as separate domain bindings and configure DNS for each. If you want one canonical URL, configure and test the redirect in your application; linking the two names does not create an automatic edge redirect.

Troubleshooting#

Stuck on Verifying
DNS hasn't propagated yet, or a CAA record is blocking Let's Encrypt. Check with dig +short example.com and dig CAA example.com.
Certificate reissue failed
The most common cause is a DNS change between issuance and renewal. Confirm the ALIAS/CNAME still points at the muerte.app hostname.
SSL error in browser
The client isn't sending SNI, or an intermediate proxy is terminating TLS with its own certificate. Test with curl -v https://example.com.
Wrong service serving the domain
Two services can't share the same hostname. Remove the domain from the old service, wait for the change to propagate, then add it to the new one.

Learn more about the deploy pipeline in How deploys work or configure environment variables in Environment variables.