Domains

A project's Domain section is where you point custom hostnames at your project, validate DNS, and manage SSL certificates. Open the project and pick Domain in the menu beside the page, or go to /projects/{project}/domains.

Platform preview URLs #

Every new web project reserves a public address such as project-name.depfloy.app. The create form checks the editable name before submission and offers a different hostname when the first choice is already in use.

Depfloy creates the platform DNS record, prepares the project vhost, issues a certificate for that hostname, and verifies HTTPS. The Domain section reports each setup stage. A failed stage shows its message and, when it can be retried, a Retry setup action. An unexpired certificate already recorded for the hostname is reused during a retry.

The platform address stays with the project when the project is renamed or moved to another server. If a production domain was supplied at creation, that domain remains primary; the preview URL is an additional address.

Custom preview domains #

Organizations on the Business plan or above can configure one preview base under Settings → Preview domains. New projects can then receive addresses such as project-name.preview.example.com. Owner, Admin, Manager, and Developer roles can manage this setting; Viewer cannot.

On that page, Add Domain opens a side panel; submit it with Connect Domain. The TXT record to publish is in the domain row’s details, and Verify and Remove are in the row’s ”…” menu. The per-project CNAMEs are listed under Project DNS records, with Recheck DNS to check them again.

Choose one DNS setup:

  • Cloudflare manages DNS — select a synced Cloudflare zone and, optionally, a subdomain such as preview. Depfloy creates and checks the ownership record. After verification, it creates each project’s exact DNS-only CNAME to that project’s stable depfloy.app hostname.
  • I manage DNS — enter the base domain and publish the TXT name and value shown by Depfloy. After the base is Verified, publish the exact CNAME shown for each project, pointing it to that project’s platform hostname, then recheck the project record. The platform URL keeps working while the custom address waits for DNS.

Each custom address receives an individual certificate. It becomes Ready only after its CNAME, public HTTPS response, and HTTPS response at the project’s server have been verified.

A wildcard CNAME cannot create these mappings: projects may run on different servers, and DNS does not substitute the matched project label into a target. Add the project-specific CNAME shown under Project DNS records.

Removing a custom base requires its project bindings to be removed first. If a Business subscription changes to a plan without custom preview domains, Depfloy retires the custom bindings immediately and uses each project’s platform preview as the replacement primary preview. A production primary domain is not changed. For manual DNS, remove the old TXT and CNAME records at your provider after the bindings are retired.

Manual setup restrictions #

Manual custom preview activation requires the platform preview to be ready first. It is unavailable while the project has an active Octane plugin or a custom nginx configuration; remove that configuration or plugin before rechecking the CNAME. These restrictions apply to the manual activation path, not to the platform preview URL or a production domain.

Add a domain #

Click Add Domain at the top of the section, type the hostname (app.example.com), and press Add Domain in the dialog. Depfloy registers the domain on the project and shows the server IP the domain’s A record should point to.

Every domain is a row in one list, with its status, its certificate and the certificate’s expiry. The row’s … menu holds the actions for that domain — Make primary, Retry SSL, Renew certificate, Delete certificate and Remove domain — as far as they apply to it. Check DNS, Create certificate and Remove all certificates are in the section’s More menu.

When a Cloudflare zone covers the domain #

With a Cloudflare account connected and a zone covering the name, the dialog asks for the zone and the subdomain instead of a full hostname, and opens the A record for you — pointing at the server, DNS-only rather than proxied, so a certificate can be issued. It tells you that before you press the button, and tells you instead when the server has no public address yet and the record has to wait.

The rest of this section is what to do without that: the records to add by hand, and how Depfloy notices when they land.

DNS records #

For the domain to resolve to your project, you need to add A records at your DNS provider that point at your server’s public IP. The Domain section shows the server’s public IP with a copy button.

For an apex domain (example.com), use the A record directly. For a subdomain (www.example.com, app.example.com), some providers prefer a CNAME pointing at the apex; the A record approach also works fine.

Validation status #

After you save DNS records, the Domain section polls in the background to detect when DNS propagates. The domain’s status updates from Pending to Active without you needing to refresh — usually within minutes of the DNS change, though some providers take longer.

If validation never succeeds, double-check:

  • The exact host (do you need www?)
  • The exact IP (your server’s current public IP, not an old one)
  • That you haven’t accidentally created the record on a different domain

SSL certificates #

Once a domain is validated, Depfloy can issue a free Let’s Encrypt certificate for it. Choose Create certificate in the section’s More menu, select the domains to include, and Depfloy requests the certificate and installs it on your server. The first issuance takes a minute or so; afterwards your domain serves over HTTPS automatically. Preview URL certificates are managed for you and are not listed in that dialog.

Let’s Encrypt certificates are valid for 90 days. Depfloy renews them automatically about 30 days before they expire. To re-issue one yourself, choose Renew certificate in the domain’s … menu. When certificate setup for a domain can be retried, the same menu offers Retry SSL.

Delete certificate removes one certificate and Remove all certificates (in More) removes every certificate of the project; both ask for confirmation first.

Redirects #

The Redirect box canonicalises www and non-www: choose Disabled, www to non-www or non-www to www, then save. With a redirect on, point the A record of the www name at the server as well. The redirect is configured in nginx and applies immediately.

Remove a domain #

Choose Remove domain in the domain’s … menu and confirm. Depfloy updates nginx to drop the domain. The primary domain has no remove item; make another domain primary first. If you had SSL on the domain, the certificate is also revoked.

A platform preview is retained separately from customer-managed domains. Removing a production primary domain does not delete the project’s reserved preview address.

API #

For programmatic access — registering domains during automated provisioning, for example — see Domains API.