Docs / Custom domains

Custom domains

Every app ships with a free {name}.sarpius.app subdomain, but you can also point your own domain at it. You add the hostname, point a DNS record at the Sarpius edge, and Sarpius Router issues and renews the TLS certificate automatically. This guide covers adding a domain, the DNS records to create, how automatic TLS works, path-prefix rules, and the limits to know.

What a custom domain is

Sarpius Router is the edge reverse proxy in front of every app. It terminates TLS and routes each incoming request to the right Component by looking at the request host and path. A custom domain is a hostname you own (for example shop.brand.io) that you attach to one of your apps so that traffic to that hostname is served by your app instead of only by its built-in subdomain.

  • Subdomains: every app automatically gets a {name}.sarpius.app subdomain. These are auto-managed by the platform, always have a certificate, and cannot be deleted by hand.
  • Custom domains: hostnames you own and add yourself. You manage the DNS for them, and you can delete them at any time.

A domain has a primary app (the app that serves everything by default) and an optional set of path-prefix rules that send specific sub-paths to other apps. This lets one hostname front a whole multi-Component app: the front-end on / and the back-end on /api, for example.

Add a domain

You can add a custom domain from the Sarpius Router console (Advanced) or inline from a Project workspace under Routing. The standalone console is the most direct path.

  1. Open the Sarpius Router console at /synthrouter and choose New domain.
  2. Enter the hostname exactly as it will be requested (for example app.example.com). It is lower-cased and validated: it must be a well-formed domain with a TLD, no leading or trailing hyphens, and each label at most 63 characters.
  3. Pick the primary app that should serve the domain by default.
  4. Create the domain. You are taken to its detail page, where a catch-all rule for / pointing at the primary app has already been created for you.
Note

A hostname can only be attached once across the whole platform. If it is already in use, the create call returns a 409 conflict. Add the domain before you point DNS at it, so the certificate can be issued as soon as DNS resolves.

Point DNS at the edge

Adding the domain in Sarpius only tells the router which app to serve. You still have to point the hostname at the Sarpius edge from your own DNS provider. Nothing serves and no certificate is issued until the hostname resolves to the edge that already serves your app subdomain.

  • CNAME (simplest): point the hostname at your app subdomain, for example a CNAME from app.example.com to {name}.sarpius.app. The edge routes by the request host, so a CNAME to the subdomain reaches the same edge.
  • A / AAAA record: point the hostname straight at the edge IP address that serves Sarpius traffic, if your provider cannot CNAME an apex or you prefer an address record.
Heads up

The DNS record lives in your own DNS provider, and only you can create, change, or remove it. Sarpius cannot edit or delete DNS records on domains it does not manage. Apex domains (example.com with no subdomain) often cannot take a plain CNAME; use your provider CNAME-flattening or ALIAS feature, or an A/AAAA record.

DNS changes propagate on their own schedule. Once the hostname resolves to the edge, certificate issuance starts on its own, so there is no separate manual verification step to click.

Automatic TLS

Sarpius Router issues and renews certificates for you over ACME. There is no certificate to upload and no private key to paste. As soon as the hostname resolves to the edge, the router runs the ACME HTTP challenge, obtains a certificate, and starts serving HTTPS on that hostname.

The domain detail page shows the certificate state so you can watch issuance progress:

  • pending: issuance is in flight. This is normal right after you add the domain and point DNS. It clears once the challenge succeeds.
  • active: a valid certificate is installed and HTTPS is being served. The panel shows the issued and expiry dates.
  • failed: issuance did not complete. The panel shows a failure reason, most often because DNS does not yet resolve to the edge or port 80 is not reachable for the challenge.
Note

Certificates renew automatically, roughly 30 days before expiry, so a live domain keeps serving without any action from you. If a certificate is stuck in pending or failed, re-check that the DNS record points at the edge and that the hostname is externally reachable.

Path-prefix rules

A single custom domain can front several apps by path. Every domain has one locked catch-all rule for / that follows the primary app, plus any number of prefix rules you add. Requests are matched by longest prefix first, so a more specific rule wins over the catch-all.

On the domain detail page, use the rules table to add a prefix, choose which app serves it, and optionally strip the prefix before the request reaches the app:

  1. In the add row, type a path prefix that starts with / (for example /api). The prefix / itself is reserved for the catch-all and cannot be reused.
  2. Pick the app that should serve that prefix. It must be an app you own.
  3. Optionally tick Strip prefix so the app receives the request with the prefix removed (a request to /api/users arrives at the app as /users).
  4. Add the rule. Route changes take effect at the edge shortly after you save.
Note

The catch-all rule for / is locked: you cannot delete it or change its prefix, and it always tracks the primary app. To change what serves /, change the domain primary app instead. Prefix rules must each use a unique prefix on the domain; a duplicate prefix returns a 409 conflict.

Following project routes

When a custom domain is attached to an app that belongs to a Project, it follows that Project routing plan by default. The platform materializes the Project routes onto the domain so it serves the same rule set as the rest of the app, rather than only the bare catch-all. For a domain whose app has no Project, following is a no-op and only the catch-all applies.

  • Following (default): the domain mirrors the Project routes automatically. Add or change routes at the Project level and the domain picks them up.
  • Override: switch the domain to manage its own rules, which freezes the current rules as a fixed snapshot you edit by hand. Switching back to following re-applies the Project plan.

Attaching a domain inline from the Project workspace ties it to a specific app-environment, and access is gated by your role on the Project (editor or higher). Attaching it from the standalone Sarpius Router console instead gates by direct ownership of the app you pick as primary.

Common tasks

  • Change what serves the domain: on the detail page, pick a different primary app. The catch-all rule updates in lockstep.
  • Split traffic by path: add a prefix rule such as /api that points at your back-end Component while / stays on the front-end.
  • Remove a prefix rule: delete it from the rules table. The catch-all cannot be deleted this way.
  • Remove the domain: use Delete domain and type the hostname to confirm.
Heads up

Deleting a custom domain removes all of its routing rules and revokes its TLS certificate. This cannot be undone. After deleting, remember to remove the matching DNS record in your own provider, since the platform cannot do that for you.

Privacy route: keeping a domain off Cloudflare

By default, traffic to your apps passes through Cloudflare for DNS, CDN and DDoS protection. Cloudflare decrypts that traffic at its edge and re-encrypts it to Sarpius, so Cloudflare can technically see request and response content. The built-in *.sarpius.app and sarpius.eu hostnames always pass through Cloudflare.

If you do not want this for a custom domain, you can switch on the Privacy route for that domain. It is set per custom domain: the domain then connects directly to the Sarpius edge and bypasses Cloudflare. You can enable it from the custom-domain row in the Routing section of a Project workspace, and switch it off again at any time.

Heads up

Without Cloudflare there is no CDN caching and no DDoS protection for that domain, and the WAF no longer inspects its traffic. The Privacy route is a paid add-on billed per minute, like other resources. The Data residency page explains the trade-offs and shows the current rate.

Limits and billing

  • Subdomains (*.sarpius.app) are auto-managed and cannot be deleted by hand. Only their app deletion path removes them.
  • A hostname is unique across the whole platform. If it is attached elsewhere, adding it fails with a conflict.
  • Primary apps and rule targets must be apps you own; pointing a domain or rule at an app you do not own is rejected.
  • The platform manages the certificate, never the DNS. Creating and later removing the DNS record is always your responsibility.

A custom domain carries a small ongoing charge while it is attached, metered and billed per minute from your wallet. Built-in {name}.sarpius.app subdomains are free. Removing a custom domain stops its billing.

Sarpius is a trading name of Synthwave-technologies.nl · KvK 73239038 · VAT NL002410192B67 · Apeldoorn, the Netherlands

(c) 2026 Sarpius. All rights reserved.

Hosted in the EU