Guide for administrators

Administrators run the builder: they approve accounts, set limits, review what goes online and keep the server healthy. Installing the server: Install the builder on your server and …. Every command and setting: reference.md.

Contents: Your first steps · Accounts · Publish requests · Sites · Audit log · Mails · Hosting sites · Command line · Routine tasks · Security notes

1. Your first steps

  1. Sign in and set up two-factor authentication (Account): the Admin area stays locked until it is on. Store the recovery codes in your password manager.
  2. Optionally add a passkey: it then replaces password + code for you; password + code stay the fallback.
  3. Fill in Admin → Settings (below).
  4. Look at the other tabs under Admin: Publish requests, Accounts, Sites, Web servers, Audit log.

Admin → Settings sets what everyone sees on the sign-in page and in the builder:

SettingShown
Operator namenext to "Website Builder" on the sign-in page
Logo (PNG, JPEG or GIF, at most 1 MB)above it, up to 64 px high; on a white plate in the dark appearance
Introduction, English and Germanthe text about the builder on the sign-in page, in the visitor's browser language; empty: a short default description
Legal notice (Impressum), privacy policylinks below the sign-in form, the sites list, the account page, password reset and invitation pages
DocumentationRead the documentation on the sign-in page, Help in the top bars, and with the legal links

Why the legal links: the builder is a service you offer online. In Germany the provider identification (§ 5 DDG, the Impressum) and the privacy policy (GDPR) must be easy to reach from every page, the sign-in page included. The pages of your company website are fine, if the privacy policy also covers the builder: accounts and their data, the sign-in cookie (technically necessary, no consent needed), server logs, e-mail delivery (Microsoft 365) and where the server is hosted. Until both links are set, the tab shows a reminder. Links must start with https://; changes are in the audit log (Settings).

2. Accounts

New registrations are pending until you approve them. Admin → Accounts lists every account with status, role, usage and limits.

ActionHow
Approve a registrationApprove in the row (the person gets a mail); to refuse someone, leave it pending or run admin disable (§ 8)
Disable an accountDisable: signed out at once, cannot sign in; Enable undoes it
Make someone an administratorRole → admin (they must then set up 2FA too)
Limits per accountLimits (sites / MB / pages / templates / themes): sites, upload storage, pages per site, page templates and own themes; 0 = the server default (-max-sites, -max-storage-mb, -max-pages, -max-page-templates, -max-themes)
Lost 2FA / password (person cannot help themselves)command line: admin reset-2fa, admin set-password (§ 8)

Clients (content editors) get their account by accepting an invitation; they are active without approval and can only open sites shared with them.

Stop self-registration: start the builder with -signup=false (then only you create accounts: admin create, or let people register while it is on).

3. Publish requests

Nothing goes online without you (unless you allow content updates without review, § 4).

  1. Admin → Publish requests shows waiting requests (filter: waiting, approved, declined, all). A request is either a full publication (design + content) or a content update.
  2. Open one: you see exactly the frozen version that would go online, page by page, with its theme as it was at request time, the user's message, and the form recipients (the addresses contact forms send to; check them, they are not visible on the page).
  3. Approve and hand over: the bundle is written to data/deploy/<site>.zip; every web server (this server and any you added) installs it on its domain within ~30 seconds. Decline with a note: the user sees it.
  4. Download export gives you the bundle to inspect or host elsewhere.

What to check before approving: the public address (domain) is right and its DNS points to the server; texts and images are appropriate; the accessibility panel was ok; form recipients are addresses of the site's owner.

4. Sites

Admin → Sites lists all sites with owner, number of entries, uploads and clients.

  • Max entries / Max uploads (MB) / Max collections per site; 0 = server default (-max-cms-items, -max-site-storage-mb, -max-collections). A site that already has more collections than a lowered limit stays editable, but cannot get more.
  • Content goes live immediately: clients' content updates (entries, editable texts) are deployed without a request. Use it for clients you trust; design changes always need your approval.

Offering plans

The limits are the levers for plans: what a customer may build, and what it costs you to host. The builder has no billing; you sell a plan and set its limits.

LeverWhereWhat it costs you
Sitesaccounteach published site is a domain with its own certificate and files on the server
Upload storageaccountdisk space, and the nightly backups keep 14 days of it
Pages per siteaccountexport and redeploy time grow with pages × languages
Page templates, own themesaccountlittle; mostly a way to separate plans
Collection entries, collectionssiteexport time (every entry is a page per language) and review work
Uploads of a sitesiteas storage, for one site
Content goes live immediatelysitesaves your review time; a service level, not a resource

How to set it up:

  1. Standard plan = the server defaults: -max-sites, -max-storage-mb, -max-pages, -max-page-templates, -max-themes (accounts), -max-cms-items, -max-collections, -max-site-storage-mb (sites) in the command: of builder in deploy/server/compose.yaml, then docker compose up -d builder. Every account and site without own values uses them.
  2. Bigger plans: enter the values per account in Admin → Accounts and per site in Admin → Sites. They apply at once. Lowering a limit never deletes anything: the customer keeps what they have but cannot add more until they are below the limit.
  3. Tell customers what they get: the wiki page Limits lists every limit and its standard value; Account → Your limits shows each customer their own values and usage.

An example (adjust the numbers and add your prices):

StarterBusinessAgency
Sites1315
Upload storage200 MB1 GB10 GB
Pages per site1030100
Collection entries per site503002000
Collections per site31030
Page templates / own themes10 / 350 / 20200 / 100
Content goes live immediatelynoyesyes

Values that are fixed for everyone (file sizes, fields per collection, languages, …) are listed on the same wiki page and in reference.md.

5. Audit log

Admin → Audit log records who did what and when: account approvals, role and limit changes, disabling, publish decisions, content updates, invitations and members, 2FA and passkey changes, password changes and resets, account deletions, scheduled redeploys, command-line actions. Use it to answer "who changed this?" and to notice unusual activity.

6. Mails

Mails are sent through Microsoft Graph when NOTIFY_FROM and MSGRAPH_* are set (install.md § 5):

MailTo
New account waiting for approvaladministrators
Your account is activatedthe person
Reset your password (link valid 1 hour) / Your password was changedthe person
A passkey was added / removedthe person
Invitation to edit a website (link valid 14 days)the invited client
Publish request / Content update waitingadministrators
Request approved / declined (with your note)the requester

Without mail settings they are only logged; invitations and password resets then do not work (use admin set-password instead).

Contact form mails of hosted sites

Customers need no mail account of their own. Every site on your servers sends its form mails through the server's forms service, with your sender:

visitor → form on kunde.de → forms service → Microsoft 365 (GRAPH_FROM, e.g. website@your-domain)
        → the form's Recipient email (e.g. info@kunde.de), Reply-To: the visitor

The customer's domain plays no part in sending; whether the mails arrive depends on three things:

1. Your sender domain is authenticated (once). Receiving servers check that the sender domain allows Microsoft 365 to send for it. At your DNS provider:

RecordValue
SPF: TXT on your-domainv=spf1 include:spf.protection.outlook.com -all; merge with an existing SPF record, a domain may have only one
DKIM: CNAMEs selector1._domainkey and selector2._domainkeythe values shown in Microsoft Defender → Email & collaboration → Policies → Email authentication settings → DKIM → your domain; then switch on Sign messages there
DMARC: TXT on _dmarc.your-domainstart with v=DMARC1; p=none; rua=mailto:dmarc@your-domain, later p=quarantine
dig +short TXT your-domain | grep spf
dig +short CNAME selector1._domainkey.your-domain
dig +short TXT _dmarc.your-domain

2. The recipient address is right. It is not visible on the page; a publish request lists every form's recipient (§ 3). Check it, above all on a site's first publication: a typo loses every message.

3. One test message after going live. Send a message with the form on the live site:

ResultMeaning
it arrivesdone
the form says sending faileddocker compose logs forms names the reason (e.g. a wrong client secret, AADSTS7000215)
the form thanks, nothing arrivesalmost always the customer's spam filter: ask them to add your sender (GRAPH_FROM) to their safe senders

Good to know:

  • Subject: each form's Email subject is the mail's subject; the default is the same on every site. For customers with several sites, set one that names the site ("Anfrage über kunde.de").
  • Limits: 5 messages per visitor in 10 minutes and 100 per hour per server; Exchange Online allows far more (about 10,000 recipients a day).
  • Access policy: restricting the app to the GRAPH_FROM mailbox (install.md § 5) limits who sends, not where to; recipients at any domain are fine.
  • Mails from the customer's own domain (website@kunde.de) are not possible: one server has one sender for all sites. A customer who needs that can host an export with their own mail settings (Hosting an exported website yourself).

7. Hosting sites

On the server stack (install.md § 9):

  1. The site's Public address is its domain (https://zitzelsbergerit.de).
  2. DNS of the domain (and www.) points to the server before you approve.
  3. Approve → the deployer installs it, Caddy gets the certificate, www. redirects.
  4. docker compose logs deployer tells why a site was not installed (no public address, domain already used by another site or the builder).

A site moves to a new domain when its public address changes and the next version is approved; the old domain is removed from the server.

Admin → Web servers lists every server that hosts the websites: This server (set up automatically) and any web servers you add to keep the websites online when this server fails. Each gets the approved sites with its own token; the list shows whether it is online, has the current versions and what failed. Set-up: Hosting.

8. Command line

On the server (from deploy/server/):

docker compose run --rm builder admin list -data /data
docker compose run --rm builder admin create -data /data -email new.admin@example.com
docker compose run --rm builder admin promote -data /data -email someone@example.com
docker compose run --rm builder admin approve -data /data -email someone@example.com
docker compose run --rm builder admin disable -data /data -email someone@example.com
docker compose run --rm builder admin reset-2fa -data /data -email someone@example.com
docker compose run --rm builder admin set-password -data /data -email someone@example.com
docker compose run --rm builder backup -data /data

Locally (development): go run ./cmd/builder admin … -data ./data.

9. Routine tasks

WhenWhat
Daily (automatic)backup at 03:17 into data/backups/
Weeklycopy data/backups/ off the server; look at Publish requests and Accounts
Monthlyupdate to the newest release: ../update.sh in the stack folder (Updating); docker compose pull caddy
Before the Entra secret expirescreate a new client secret, put it into .env, docker compose up -d
Before the GitHub token expirescreate a new one for the next build
Now and thendocker compose logs --since 24h builder | grep -iE "error|warn"; disk space (df -h)

10. Security notes

  • Administrators must use two-factor authentication; passkeys count as two factors.
  • Sign-ins are rate-limited per address and account; sessions last 14 days and end when an account is disabled or its password is changed.
  • Uploaded images are re-encoded (metadata removed); PDFs are checked for active content; rich text and theme CSS are rebuilt from whitelists; contact form recipients are never part of a page.
  • The web-facing builder cannot change the web server's configuration: it only writes bundles that the deployer (with read-only access to them) installs.
  • Containers run as an unprivileged user on a read-only file system without a shell (distroless).
  • Keep .env private (chmod 600), restrict the Microsoft app to the sending mailbox, and copy backups off the server.
  • Why things are done this way: decisions.md; the security checklist is in PLAN.md.