Custom domains
Bring your own domain for your apps, verified by certificate issuance over DNS — private apps serve it on your tailnet, public apps on the public internet.
Every app gets an address under fluxvale.app for free. You can also bring your own domain. A custom address follows the app's exposure: a private app serves it only on your tailnet, a public app serves it on the public internet.
Custom domains are free of charge. Registering one requires a one-time top-up of at least $5 in your organization's wallet, like the other infrastructure features.
How verification works
You register a domain such as apps.example.com. The platform then proves control of it the honest way, by issuing a wildcard certificate for *.apps.example.com through the public ACME DNS-01 challenge. No certificate, no verified domain.
One DNS record at your provider makes this work:
_acme-challenge.apps.example.com CNAME <target>.acme.fluxvale.app
The target is per-domain and stable. Get it from the platform API (GET /api/v1/domain-delegations/apps.example.com), or from the fluxvale_domain_delegation data source in Terraform:
data "fluxvale_domain_delegation" "apps" {
domain = "apps.example.com"
}
The platform writes the ACME TXT record in its own validation namespace, so certificates issue and renew without you handing over DNS credentials. Its cert-manager DNS-01 solver runs with cnameStrategy: Follow under dns01, which follows your CNAME into that namespace. Without it, the challenge would be written in your zone and fail. You keep full control of the zone.
Four things matter at your DNS provider:
- Create the
_acme-challengerecord explicitly. A wildcard CNAME in your zone can synthesize one and break the delegation. - A DNSSEC-signed zone must sign the delegation CNAME. If issuance fails, this is the likely cause.
- A public app's custom address needs one host record; a private app's needs none. For a public app, add
<label>.<domain>at your DNS provider as a proxied record on Cloudflare pointing at the platform's origin,159.195.151.119— the same shape FluxVale's own names use. The origin accepts web traffic only through Cloudflare, so a DNS-only record will not serve. For a private app, no host record exists to point anywhere: the name resolves only through your tailnet after the gateway claims the domain, and it stays dark off it. - The Cloudflare zone's SSL mode must be Full (strict) — as it must already be for any FluxVale app. A proxied record also means Cloudflare sees the traffic, as it does for every public FluxVale app.
If you manage DNS in Cloudflare with Terraform, see Wire a Cloudflare domain end to end for the complete HCL configuration. Always set proxied = false on the _acme-challenge CNAME, because a proxied CNAME breaks the delegation.
Verification runs on a regular pass with a cadence of about 15 minutes, so allow time after your records are in place. If issuance does not succeed within its window, about 72 hours, the registration is marked failed. Remove the failed registration, then register the domain again, because platform-wide uniqueness refuses a same-name re-register while the row stands.
Verification is not resolution
verified means the wildcard certificate issued. For a private app, the name still answers nothing until your organization's gateway claims the domain. Saving the gateway's Tailscale API token claims the verified domains it can, and a later verification or an instance attach claims too. With the provider, the token save joins the apply that creates the gateway or bumps rotate_api_token_on. Order the gateway after the domain. A private app's name does not resolve off tailnet; a public app's name serves through its host record (above), with no gateway at all.
Where the feature is today
Registration is available through the API, the Terraform provider, and the MCP server (custom_domain tool). The Terraform guide shows a working example with the fluxvale_custom_domain resource, the delegation data source, and the gateway token, including how to wait out verification.
The mint is live. Once a custom domain is verified, add an address on the instance page: Custom addresses takes a label such as git and mints git.<your-domain>. The member API carries the same three verbs, POST/GET /api/v1/instances/:instance_id/hostnames and DELETE /api/v1/instance-hostnames/:id. An address can also be declared in Terraform: the fluxvale_instance_hostname resource mints the same row beside its instance, and an address that already exists joins the stack with an import block — see the Terraform guide, section Declare an instance's custom address.
A custom address serves when its domain is verified and the app is public (it serves on the public internet through your host record), or the app is private and attached to your organization's gateway that has claimed the domain (it serves on your tailnet only). Until then the address is recorded and serves nothing yet.
Claiming is one token save. In Settings → Access, paste a Tailscale API access token from your admin console's Keys page, or set api_token on the Terraform gateway.
One credential is enough: enabling with the token alone (no auth key) makes the platform mint the gateway's join key from it (single-use, tagged, revoked on use), so you never mint or paste a join key yourself. Mint the token from a tailnet owner or admin account: console API tokens carry that account's full permissions (scope selection belongs to OAuth trust credentials, not Keys-page tokens). The token is stored write-only and never shown again. The save attempts to claim every verified domain your organization has. Read claimed_domains for the result. The member API carries the same writes: the create (POST /api/v1/access-gateways, one credential or the other) and the token save (PATCH /api/v1/access-gateways/:id/api-token).
Tailscale API keys expire within 90 days, so save a fresh one before then. In Terraform, bump rotate_api_token_on to re-send it. The certificate and the DNS records do not change, because the wildcard you verified covers every label you mint under it.
Remove the _acme-challenge CNAME when you remove the domain. A delegation left behind is a takeover path for that hostname.
What the app is told
When a custom address serves — public or private — the app is told that address in its URL setting, and a running app restarts to pick it up. When more than one custom address serves, the app is told the oldest one, so adding a second address does not change the app's address. When no custom address serves, a public app is told its default hostname, and a private app is told nothing unless its default serves, or a local stand-in address if it cannot start without its URL setting. Any later change (an address added or removed, an exposure or claim or attach change) re-tells the running app the same way. An app whose sign-in is already wired to Pocket ID keeps the old callback after its address changes. Re-run the wiring to re-point it, or edit the callback on the client in Pocket ID. The few apps that cannot start without their URL setting are told a local stand-in address until a real one exists, and go back to it if their last address stops serving, so they keep starting while they wait for an address.