Docs
/

Magic Apps

Custom domains

Serve your app on your own domain, with a certificate Dcubix issues and renews.

Every app has an address of its own, such as shop-k3x9qz.<apps domain>. It is chosen when the app is created and never changes, even if you rename the app. You can add up to seven of your own domains beside it.

Add a domain

  1. Add the hostname to the app in the dashboard, for example www.example.com.
  2. Publish the DNS records the dashboard shows. Which ones depends on the hostname; see below.
  3. Dcubix checks DNS, then registers the hostname and issues a certificate. You can ask it to check again at any time.
  4. The domain’s status turns Active, and the app answers on it over HTTPS.

Nothing is served on the hostname until DNS proves it’s yours.

A subdomain, such as www.example.com

Add a CNAME record pointing to the app’s address. That record is the proof: nothing else is needed. The certificate is usually issued about ten seconds after the record is visible.

A root domain, such as example.com

A root domain can’t have a CNAME. Use your DNS provider’s ALIAS, ANAME or CNAME flattening to point it at the app’s address, and add the ownership TXT record the dashboard shows, at _dcubix-challenge.example.com.

Behind a proxy or CDN

If the hostname goes through a proxy, Dcubix can’t see your CNAME. Add the ownership TXT record, and the _acme-challenge TXT record the dashboard shows so the certificate can be issued through DNS.

Statuses

Status Meaning
Pending Waiting for DNS or the certificate. The dashboard shows what to publish, and what’s wrong when something is
Active Registered, with a certificate, and answering over HTTPS
Blocked The hostname was refused. Checking again tries once more

A hostname DNS never proves is removed after 7 days.

Moving a domain between apps

A domain belongs to the app that proves it last. To move one, add it to the new app and publish the ownership TXT record; a CNAME alone isn’t enough while another app serves the hostname. The old app loses it, and if it was serving there, its project’s admins get an email.

While the move spreads, HTTPS on the hostname can fail for up to two minutes.

Domains that can’t be added

Dcubix refuses, when you add it:

  • a hostname under a Dcubix domain,
  • an eighth custom domain on one app,
  • a hostname whose domain is already used by another account on the network that serves Dcubix apps.

You’re told before you change any DNS.

The same hostname can be added to a site and an app at once. DNS decides which one answers.