Documentation menu

Platform

Domains & TLS

Generate a platform hostname, connect a custom domain with CNAME and TXT verification, and get automatic HTTPS certificates.

Every environment of a service can be reached on the web through domains. A domain always routes through the environment's alias, so deploys, rollbacks and promotions switch all of an environment's domains at once.

Kinds of hostnames

HostnameExampleRoutes to
Deployment hostnamedpl-{publicId}.{deployDomain}One specific deployment, forever
Generated platform hostname{service}-{environment}-{suffix}.{productionDomain}The environment's alias
Custom domainapp.example.comThe environment's alias

Routing is based on the Host header. You never create a DNS record per deployment.

Generate a platform hostname

In the service's Domains tab click Generate domain and choose the port your app listens on (prefilled from the running revision, or the database's default port). The hostname works immediately: platform roots use wildcard DNS and wildcard certificates, so no new DNS record is needed.

Each domain stores its own target port. If your app listens on more than one port, you can create a domain per port.

Add a custom domain

  1. In Domains, click Add custom domain, enter the hostname (for example app.example.com) and choose the port.
  2. The dashboard shows two DNS records to create at your DNS provider:
TypeNameValue
CNAMEapp.example.comA generated platform hostname of this service
TXT_parslinks-verify.app.example.comparslinks-verify={token}
  1. Parslinks checks the records. Until both match, the domain shows Waiting for DNS update and is not used as the service's visit URL.
  2. When ownership is verified, the domain joins the routing table and a certificate is issued automatically on the first HTTPS request.

The custom domain is created immediately; it does not wait for an Apply or a deploy.

Apex domains

A root domain such as example.com cannot have a regular CNAME at most providers. Use your provider's CNAME flattening or ALIAS/ANAME record (Cloudflare flattens CNAMEs at the apex automatically), or serve the apex as a redirect to www.

Using Cloudflare's proxy (orange cloud)

You can keep your custom domain proxied by Cloudflare. Set SSL/TLS mode to Full (strict): Parslinks serves a valid certificate for your hostname at the origin. The verification TXT record must stay DNS-only.

Certificates

  • Platform hostnames are covered by wildcard certificates issued with the ACME DNS-01 challenge.
  • Custom domains get their certificate on demand, but only after ownership is verified. An unverified hostname can never trigger a certificate.
  • Certificates renew automatically. You never upload, renew or rotate certificates yourself.

Each domain shows its ownership status and TLS status in the dashboard.

Which URL the dashboard shows

The Visit button prefers, in order: a verified custom domain, then a generated platform hostname, then the private {service}.{environment}.internal name (which only works inside the project).

Domains and environments

Domains belong to one environment. A preview environment's domains never collide with production, and deleting an environment removes its routes. When you promote or roll back, every domain of that environment follows the alias.

Limits

Custom domains per workspace depend on your plan (Starter: 1, Pro: 10). Generated platform hostnames do not count toward that limit.

Troubleshooting

  • Stuck on "Waiting for DNS update": check the exact record names (some DNS panels append your zone automatically, producing app.example.com.example.com), and allow time for DNS propagation.
  • Certificate error in the browser: the domain is not verified yet, or Cloudflare SSL mode is "Flexible". Use Full (strict).
  • 502 / timeout: the domain's port does not match the port your app listens on, or no replica is ready. See Troubleshooting.