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
- 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.
- Optionally add a passkey: it then replaces password + code for you; password + code stay the fallback.
- Fill in Admin → Settings (below).
- Look at the other tabs under Admin: Publish requests, Accounts, Sites, Web servers, Audit log.
Settings: your name, logo and the legal links
Admin → Settings sets what everyone sees on the sign-in page and in the builder:
| Setting | Shown |
|---|---|
| Operator name | next 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 German | the text about the builder on the sign-in page, in the visitor's browser language; empty: a short default description |
| Legal notice (Impressum), privacy policy | links below the sign-in form, the sites list, the account page, password reset and invitation pages |
| Documentation | Read 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.
| Action | How |
|---|---|
| Approve a registration | Approve in the row (the person gets a mail); to refuse someone, leave it pending or run admin disable (§ 8) |
| Disable an account | Disable: signed out at once, cannot sign in; Enable undoes it |
| Make someone an administrator | Role → admin (they must then set up 2FA too) |
| Limits per account | Limits (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).
- Admin → Publish requests shows waiting requests (filter: waiting, approved, declined, all). A request is either a full publication (design + content) or a content update.
- 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).
- 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. - 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.
| Lever | Where | What it costs you |
|---|---|---|
| Sites | account | each published site is a domain with its own certificate and files on the server |
| Upload storage | account | disk space, and the nightly backups keep 14 days of it |
| Pages per site | account | export and redeploy time grow with pages × languages |
| Page templates, own themes | account | little; mostly a way to separate plans |
| Collection entries, collections | site | export time (every entry is a page per language) and review work |
| Uploads of a site | site | as storage, for one site |
| Content goes live immediately | site | saves your review time; a service level, not a resource |
How to set it up:
- 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 thecommand:ofbuilderindeploy/server/compose.yaml, thendocker compose up -d builder. Every account and site without own values uses them. - 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.
- 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):
| Starter | Business | Agency | |
|---|---|---|---|
| Sites | 1 | 3 | 15 |
| Upload storage | 200 MB | 1 GB | 10 GB |
| Pages per site | 10 | 30 | 100 |
| Collection entries per site | 50 | 300 | 2000 |
| Collections per site | 3 | 10 | 30 |
| Page templates / own themes | 10 / 3 | 50 / 20 | 200 / 100 |
| Content goes live immediately | no | yes | yes |
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):
| To | |
|---|---|
| New account waiting for approval | administrators |
| Your account is activated | the person |
| Reset your password (link valid 1 hour) / Your password was changed | the person |
| A passkey was added / removed | the person |
| Invitation to edit a website (link valid 14 days) | the invited client |
| Publish request / Content update waiting | administrators |
| 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:
| Record | Value |
|---|---|
SPF: TXT on your-domain | v=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._domainkey | the 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-domain | start 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:
| Result | Meaning |
|---|---|
| it arrives | done |
| the form says sending failed | docker compose logs forms names the reason (e.g. a wrong client secret, AADSTS7000215) |
| the form thanks, nothing arrives | almost 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_FROMmailbox (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):
- The site's Public address is its domain (
https://zitzelsbergerit.de). - DNS of the domain (and
www.) points to the server before you approve. - Approve → the deployer installs it, Caddy gets the certificate,
www.redirects. docker compose logs deployertells 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
| When | What |
|---|---|
| Daily (automatic) | backup at 03:17 into data/backups/ |
| Weekly | copy data/backups/ off the server; look at Publish requests and Accounts |
| Monthly | update to the newest release: ../update.sh in the stack folder (Updating); docker compose pull caddy |
| Before the Entra secret expires | create a new client secret, put it into .env, docker compose up -d |
| Before the GitHub token expires | create a new one for the next build |
| Now and then | docker 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
.envprivate (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.