Settings reference
Addresses, DNS and HTTPS
The portal domain, the wildcard for apps, and HTTPS through Cloudflare or straight on the server.
The two domains
In the portal: Setup wizard, step 1, or Admin, Settings, Addresses
Domain is the address colleagues open, for example apps.example.com. Every link cyantula writes (in a mail, in Slack, in a sign-in callback) is built from it.
Every app gets a name under that same domain: crm.apps.example.com. So you need two DNS records pointing at the server, or at the Cloudflare tunnel in front of it:
apps.example.com*.apps.example.com(a wildcard record)
With a Cloudflare API token cyantula creates these records itself. Only fill in Apps domain (under Advanced) when apps should live on a different domain than the portal.
Names apps may not take lists the names your company already uses on that domain (ftp, webmail, vpn, autodiscover). An app's name becomes its address, so cyantula refuses those for new apps.
How traffic reaches the server
Pick one. The form only shows the settings of the mode you pick.
- Through Cloudflare. A Cloudflare tunnel in front handles HTTPS and forwards to port 8080 on the server. No ports have to be open to the internet. The easiest choice when your domain is already on Cloudflare.
- Straight to this server. The DNS records point at the server, which answers on ports 80 and 443 itself, with certificates you upload or that Let's Encrypt issues.
Cloudflare API token
With this token cyantula creates the tunnel, runs it on the server, and adds a DNS record for the portal and for every new app. Without it you set up the tunnel and the hostnames by hand.
- Open My Profile, API Tokens in the Cloudflare dashboard and click Create Token, then Create Custom Token.
- Give it these permissions:
- Zone, DNS, Edit
- Zone, SSL and Certificates, Edit
- Account, Cloudflare Tunnel, Edit
- Under Zone Resources, include only the zone of your apps domain. Under Account Resources, your account.
- Create the token, copy it, and paste it in Cloudflare API token. Fill in Cloudflare zone only when it differs from the apps domain, for example
example.comwhen apps live underapps.example.com.
Straight to the server: certificates
Ports 80 and 443 must be open on the server. The installer opens them when they are free; later you can run:
cyantula configure --ports directThen choose how the server gets its certificates:
- Upload them. A certificate for the portal address and a wildcard certificate for
*.apps.example.com, each with its private key, in PEM format and without a passphrase. Include the intermediate certificates. The wildcard does not cover the portal address itself, so the portal needs its own. - Let's Encrypt. Fill in Email for automatic certificates and the server requests a certificate for the portal over port 80. A wildcard cannot be issued this way, so you still upload the wildcard for apps.
Trying it out first? Point ACME directory URL (under Advanced) at the Let's Encrypt staging directory so a test does not use up the production limits.
Check that it works
The setup wizard asks your browser to reach the portal over HTTPS before it finishes, and warns you when nothing answers, when the certificate is refused, or when another server answers. You can finish anyway while DNS is still on its way.
Later, the card at the top of the Addresses page checks that every published app has its DNS record and every custom domain its certificate. Added the Cloudflare token after apps were already published? Fix creates the records those deploys skipped.
Move to a real address
In the portal: Admin, Infrastructure, Move to a real address
Use this when you started on a quick-start address and now have a domain, or when you want to change the address of the portal. You prepare the new address next to the one in force, check it from your own browser, and only then switch. Until the switch nothing changes for anybody. If the page says a real address is not available on this machine, the machine does not offer one.
Do the DNS part first: the two records from The two domains, or a Cloudflare token. The page has three cards, in order.
1. Prepare the new address
The form is the one from the setup wizard. Choose how traffic reaches the server, Through Cloudflare or Straight to this server, enter the new domain, and fill in what that mode needs: the Cloudflare token and zone, or the certificates or the email for automatic certificates. Click Save.
Straight to this server needs ports 80 and 443 open. When they are not, the card says so and names the command cyantula configure --ports direct to run on the server.
A prepared address can be dropped any time before the switch with Discard, after a confirmation. The address in force stays as it is.
2. Verify it
Once an address is saved, the second card checks from your browser that two names reach this server: the Portal and the Apps wildcard. Each shows Answers, and it is this server when it works. Otherwise it says what is wrong: nothing answers, the certificate is refused, or another server answers. Check again repeats the check, for example after a DNS change.
With Straight to this server, the apps name needs a wildcard certificate that you upload. Let's Encrypt over port 80 cannot issue one.
3. Switch
Switch to the new address is available once both names answer. A confirmation names the old and the new address and tells you what follows:
- Everybody signs in again.
- Apps move to
<app>.<new apps domain>. Old app addresses stop working. - The old portal address keeps forwarding to the new one.
After the switch your browser opens the sign-in page on the new address. The Admin start page then shows the go-live checklist. Update the redirect addresses you registered at sign-in providers and redeploy the apps it lists.
Revert after a switch
If the new address turns out not to work and nobody can sign in on it, go back from the machine itself. As root on the server:
cyantula address revertIt puts the previous portal address back and prints the address you are back on. The running portal picks it up within a short while. If the installation has not moved, it says there is nothing to revert. On Proxmox, enter the container first with pct enter <id>.