Reference
Configuration
What is set in the environment, and what is set in the app.
Almost nothing is configured in the environment, on purpose. A setting that can only be changed by editing a file and restarting two containers is a setting nobody changes — and the moment somebody wants to change a claim size is while they are watching a backlog, which is the worst moment to restart a worker.
In the environment
Section titled “In the environment”Only what is a secret, or what is needed before the database exists:
| Variable | For |
|---|---|
ConnectionStrings__ContactMesh | The database |
Microsoft365__TenantId, Microsoft365__ClientId | The default app registration |
Microsoft365__Authentication__CertificatePath and password | The credential |
CHECKPOINT_PROTECTION_KEY | Seals every stored credential, database password, delta checkpoint and session key. At least 128 bits: openssl rand -hex 32. Back it up apart from the database |
CHECKPOINT_PROTECTION_KEY_FILE | The same key from a file, such as a Docker secret; it wins when it holds a key |
CHECKPOINT_PROTECTION_PREVIOUS_KEYS, …_FILE | Keys a rotation retired, which only open what they sealed; commas inline, one a line in the file |
Authentication__Mode and its options | How the dashboard signs people in |
PUBLIC_ORIGIN | The address the dashboard is opened at. Required against a real tenant, and https unless it is this host’s loopback |
MONITORING_API_KEY | The read-only monitoring endpoints |
LICENCE_FILE | A licence to install at the first start, when the database holds none yet |
Support__Email, Support__Url | Who people ask for help, on Help & support. Optional overrides: unset, ContactMesh’s own, info@contactmesh.ch and https://contactmesh.ch |
In the app
Section titled “In the app”Everything else: retention, pacing, concurrency, claim sizes, schedules, quiet hours, policies, credentials per tenant. All of it takes effect on the next pass — no restart.
Two escape hatches
Section titled “Two escape hatches”Microsoft365__UseFakeGraph replaces Graph with an in-memory fixture. Nothing reaches Microsoft; the
whole product runs against invented mailboxes. It is how the demo works and how the documentation
screenshots are taken. It is off unless set: the image talks to the real Graph. A demo with no sign-in
also sets Authentication__IsolatedDemo=true, and the API holds it to that — it refuses to start while
the database has a file, database or AD / LDAP source or a stored credential, which reach real data whatever
Graph is in use, and refuses to create or change such a source, or store a credential, while it runs.
Plan mode, per tenant, in the app rather than the environment: everything runs, nothing is written. It is the one state where the product looks entirely healthy and syncs nothing, which is why the dashboard says so on every screen while it is on.