Fundamentals

Domains

The lilylabs.app address of every app and custom domains.

App address

Each public app is reachable at https://<slug>.lilylabs.app, for example https://copperfox.lilylabs.app. The address is permanent and cannot be removed. The Domains tab of the app labels it Slug. Private apps keep the address, but it does not resolve. See Public and private.

Custom domains

Add a domain on the Domains tab of the app or with lly domain add. Then create two DNS records with your DNS provider:

TypeNameValuePurpose
CNAMEshop.example.comcopperfox.lilylabs.appRoutes traffic to the app
TXT_lily-verify.shop.example.comlily-verify=dv_<id>Proves ownership

The domain setup on the Domains tab and lly domain add both show the exact values.

Step by step: Add a custom domain.

Pending
records not found
TXT found
Verified
serves the app
certificate
Active
HTTPS ready
States of a custom domain after the DNS records are created.

LILY checks pending domains every 30 seconds. When the TXT record is found, the domain is Verified and serves the app. LILY then requests a certificate, and the domain becomes Active. Active domains are checked regularly. If the records are removed, the domain returns to an earlier state.

Restrictions

  • Apex domains: a CNAME cannot be set on the zone apex, for example example.com. Use a subdomain such as www.example.com, or a DNS provider that supports ALIAS records or CNAME flattening.
  • One app per hostname: a hostname assigned to another app is rejected.
  • No wildcards, for example *.example.com.
  • No lilylabs.app names: LILY assigns them.

On this page