Custom domains

Connect up to 5 custom subdomains, apex domains, or wildcard domains per service with automatic HTTPS certificates via TXT verification and CNAME routing.

Every service has a platform URL. You can add up to 5 custom domains per service: a subdomain such as app.example.com, an apex domain such as example.com, or a wildcard domain such as *.example.com. Custom domains cost nothing extra.

Add a domain

  1. Open the service's Settings, find Custom domains, and enter the hostname (at most 63 characters).
  2. At your DNS provider, add the records the dashboard shows:
PurposeTypeNameValue
OwnershipTXT_nanpod-verify.<your domain>nanpod-verify=<token>
RoutingCNAME<your domain>s-<service-id>.<runtime domain>

For an apex domain, where a CNAME isn't allowed, use your DNS provider's CNAME flattening or ALIAS record with the same target, or an A record to the IPv4 address shown in the dashboard.

  1. Nanpod checks the records automatically. You can also select Check now. Once all checks pass, the domain goes live on the current deployment, without a redeploy, and Nanpod issues a Let's Encrypt certificate. It renews automatically.

Wildcard domains

Wildcard domains such as *.example.com match every single-level subdomain under the base domain and use DNS-01 certificate verification. In addition to the ownership TXT and wildcard routing CNAME, add the certificate delegation record shown in the dashboard:

PurposeTypeNameValue
OwnershipTXT_nanpod-verify.<base domain>nanpod-verify=<token>
RoutingCNAME*.<base domain>s-<service-id>.<runtime domain>
Certificate (DNS-01)CNAME_acme-challenge.<base domain><delegated target shown in dashboard>

Keep the _acme-challenge CNAME in place so Nanpod can renew the wildcard certificate automatically.

Cloudflare

Proxied (orange-cloud) records work. Set Cloudflare's SSL/TLS mode to Full. Flexible causes a redirect loop, because Nanpod always redirects HTTP to HTTPS. For wildcard domains, set the _acme-challenge CNAME to DNS only (grey cloud).

Stop, sleep and delete

  • Sleeping services keep their domains.
  • Stopping a service takes its domains offline. Starting it brings them back.
  • Deleting the service removes its domains.