Skip to content

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.

Only what is a secret, or what is needed before the database exists:

VariableFor
ConnectionStrings__ContactMeshThe database
Microsoft365__TenantId, Microsoft365__ClientIdThe default app registration
Microsoft365__Authentication__CertificatePath and passwordThe credential
CHECKPOINT_PROTECTION_KEYSeals 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_FILEThe same key from a file, such as a Docker secret; it wins when it holds a key
CHECKPOINT_PROTECTION_PREVIOUS_KEYS, …_FILEKeys a rotation retired, which only open what they sealed; commas inline, one a line in the file
Authentication__Mode and its optionsHow the dashboard signs people in
PUBLIC_ORIGINThe address the dashboard is opened at. Required against a real tenant, and https unless it is this host’s loopback
MONITORING_API_KEYThe read-only monitoring endpoints
LICENCE_FILEA licence to install at the first start, when the database holds none yet
Support__Email, Support__UrlWho people ask for help, on Help & support. Optional overrides: unset, ContactMesh’s own, info@contactmesh.ch and https://contactmesh.ch

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.

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.