For administrators

Addresses

Where the portal answers, the domain published apps get their hostname under, and whether TLS ends on this machine or in front of it.

What this is

These settings decide the address colleagues open, the domain every published app gets its hostname under, and how traffic reaches this machine: through a Cloudflare tunnel (or another proxy) that ends TLS in front of it, or straight to this server, which then presents the certificates. Every link cyantula writes, in a mail, in Slack or in an OAuth callback, is built from the domain. Above the form, a check compares every published app's DNS record and certificate with what Cloudflare holds.

To move a quick-start installation to a real domain, use Move to a real address instead of editing the fields here.

Where to find it

  1. Open Admin, then the card Infrastructure.
  2. Click Addresses.

On a quick-start installation a card at the top says These are the addresses in force. To use a real domain, prepare it next to them first. and offers Move to a real address.

What you see

DNS and certificates (top card, titled DNS records and certificates): the buttons Check addresses and, when something can be repaired, Fix N. See below.

The form. Save becomes Save N changes once you edit something, Discard drops your edits, Show N rarely-used reveals the folded fields. Only the fields of the chosen mode show.

  • How traffic reaches this machine: Through Cloudflare (a tunnel or another proxy in front handles HTTPS and forwards to port 8080) or Straight to this server (the domain points here and this server answers on ports 80 and 443 itself). One or the other, never both. The installer opens ports 80 and 443 when they are free; cyantula configure --ports direct does it later. A change applies on the next settings reload.
  • Domain (required): the address colleagues open, for example cyantula.example.com.
  • Apps domain (rarely used): every app is reachable at <app>.<apps domain>, which needs a wildcard DNS record pointing here. Empty means the same as Domain.
  • Cookie domain (rarely used): the sign-in cookie is scoped to this so it travels from the portal to every app, for example .example.com. Worked out from the two domains while you leave it alone. Empty means each hostname signs in separately.
  • Former portal addresses (rarely used): comma-separated names that keep answering, so API, OAuth and MCP callers registered on an old name keep working. Browsers are sent on to the portal address.
  • Names apps may not take: an app's name becomes its subdomain. List names the company already uses on this domain (ftp, vpn, autodiscover), separated by commas, spaces or new lines. The platform's own names (www, api, admin and so on) are always refused. Apps that already have a listed name keep it; only new apps are refused.
  • Domain for non-production environments (rarely used): empty puts them next to production as <app>--dev.<apps domain>. A separate domain also needs sign-in solved there, because the cookie does not travel to another registrable domain.
  • Cloudflare API token (Cloudflare mode): lets cyantula create the Cloudflare tunnel, the portal's DNS record and every app's, and run cloudflared on this machine. Give it Zone, DNS: Edit and SSL and Certificates: Edit on the apps' zone, and Account, Cloudflare Tunnel: Edit. Without it you set up the tunnel and app hostnames by hand, and the certificate for a custom domain is issued on this machine.
  • Cloudflare zone (Cloudflare mode): the zone those hostnames live in. Empty means the apps' own base domain.
  • Portal certificate and Portal private key (direct mode): PEM for the portal address, with intermediates, and its key (PEM, no passphrase). A wildcard for the apps domain does not cover the name with no extra label, so the portal needs its own. Enter both together. The boxes accept a file you choose, drop or paste. The key is stored encrypted and never shown again.
  • Apps wildcard certificate and Apps wildcard private key (direct mode): PEM whose names include *. and the apps domain, so every app and its dev address is covered, plus the key. A separate dev domain needs the wildcard on this certificate too. It does not cover a custom domain on somebody else's zone.
  • Email for automatic certificates (direct mode, optional): when set, cyantula asks Let’s Encrypt over port 80 for the portal address and for each custom domain whose CNAME already checks out, unless an uploaded certificate already covers the name. A wildcard cannot be issued this way; upload it. Let’s Encrypt writes to this address about expiry.
  • ACME directory URL (direct mode, rarely used): empty uses Let’s Encrypt production. The staging directory is https://acme-staging-v02.api.letsencrypt.org/directory, for a trial that must not spend production limits.

A saved secret shows stored; type to replace it, or save an empty box to remove it. A saved field also shows a link to go back to the default.

How to check and repair DNS records and certificates

A deploy registers an app's hostname with Cloudflare and requests the certificate of a custom domain, but only when the API token is there at that moment. Use this after you entered the token later.

  1. Click Check addresses. It changes nothing.
  2. Read the headline, for example All N addresses are in order or N of M need attention, and the table Address, State, Detail. States: ok, missing, wrong target, not checked and failed; for custom domains active, pending, failed and not requested.
  3. Click Fix N to create what is missing and ask again for every certificate that is not active. Each hostname reports what happened, with fixed on success. After a pass that left problems, the button reads Try again.

No app has deployed yet, so there is no address to register. means there is nothing to check yet.

How to fix the Cloudflare tunnel

When the tunnel is found, a block Cloudflare tunnel shows a pill: ok, route missing, managed on the machine or not checked.

  • Reconnect cloudflared: the routes are right at Cloudflare but the running cloudflared still uses old ones. Click it, then Reconnect now. The portal and every app are unreachable for a few seconds.
  • Let cyantula manage this tunnel’s routes: for a tunnel whose routes live in a file on the machine. The window lists the routes that will be written and lets you change where cloudflared reaches cyantula. Click Hand the routes to Cloudflare. The running cloudflared switches within seconds and ignores its file from then on. Cloudflare cannot turn the tunnel back to local management; later edits are made under Networks, Tunnels in the Cloudflare dashboard.
  • Old DNS records on this tunnel: tick the records to delete and click Remove N DNS record(s). cyantula's own records for a domain it no longer uses are ticked; others are listed but unticked, because only you know whether that service is gone.

How to change the domain

For an installation on a real domain, edit Domain (and Apps domain if used), create the DNS or tunnel routes for the new names, and click Save. Put the old portal name under Former portal addresses so existing API, OAuth and MCP callers keep working. Then click Check addresses and Fix N.

When something looks wrong

  • Some values were refused — see the fields below. Each refused field says Refused: and why. Correct it and save again.
  • Nothing checked: cyantula does not manage DNS records for this installation, so there is nothing to compare. Read the detail line under the headline.
  • missing or wrong target: the hostname has no record or points elsewhere. Click Fix N, or correct it at your DNS.
  • pending: a custom domain's certificate is not active yet. Check the CNAME at the owner's DNS, then Check addresses again.
  • Not possible yet: … point at this tunnel, but cloudflared reported no route (in the takeover window): remove those old DNS records if they are unused, then open it again.
  • The connection may have dropped while the tunnel switched over: reload the page and check again. The request travels through the tunnel being changed. Reload and click Check addresses.
  • An app's tile in the catalog says address pending, certificate pending or not reachable: the app's address does not work yet. Repair it here.

Good to know

  • Only an administrator can change these settings.
  • A wrong Domain changes every link cyantula writes. Colleagues sign in again on a new domain.
  • Changing the apps domain moves apps to new hostnames and the old app addresses stop working. Prefer Move to a real address for a planned move.
  • Handing a tunnel's routes to Cloudflare cannot be undone.
  • Per-app custom domains are set by the app's owner: see Custom domain.