Skip to main content
A preview domain is one subdomain you own, such as preview.example.com. When it is set, Levelrail writes one *.preview.example.com DNS record, issues one wildcard certificate for it, and gives each preview a host under it (for example web-pr-12.preview.example.com). While previews.domain is empty the feature is off and previews keep their current hosts.
Experimental. It is built and tested against fake DNS providers and a fake ACME issuer. It has not yet been proven with a real wildcard certificate and a real DNS provider. See Feature status.

Settings

All keys are runtime settings that apply live. The environment variable only seeds the default.

Set it up

CLI (writes need a root token):
set is a dry run until you pass --confirm. A foreign wildcard record is replaced only with --replace. Add --json for machine output. Dashboard: open Platform, Ingress and use the Preview domain card. It shows the connection check, a dry run and a safe enable step.

DNS-01 token needs

A wildcard certificate needs the ACME DNS-01 challenge, so Levelrail must be able to write TXT and wildcard records in the zone. Connect a DNS provider first (Cloudflare, Route53 or Google Cloud DNS, see Domains and ingress). For Cloudflare the token needs Zone:DNS:Edit and Zone:Zone:Read on the zone that contains the preview domain. The setup check does a safe DNS probe and names a missing scope.
Last modified on November 30, 2026