Skip to content
Free test

Configuration keys

In development. Not available. Packages are not yet published for download.

Applies to: Reach 0.1.1, built from commit 08df4b0. There is no release.

Copied word for word from docs/reference/configuration.md in the private Reach repository, commit 08df4b0, 21 November 2026.

The guide: Configuration keys

Reach is in development. Its packages are not published.

For the server (server.toml) and for the Reach agent, the read-only program on each machine (agent.toml). Taken from the code (internal/server/config and internal/agent/config). Unknown keys are an error in both files.

Server: server.toml#

Default path /etc/reach-server/server.toml (packaged installs). The file is read first, then environment variables named REACH_SERVER_<SECTION>_<KEY> override it; an unknown REACH_SERVER_ variable is an error. Lists (trusted_proxies) are written comma-separated in the variable.

KeyVariableMeaningDefault
server.public_urlREACH_SERVER_SERVER_PUBLIC_URLThe address agents and people use. Required, must start with https:// in every TLS mode. Also the console's same-origin address unless console_url is set: with it changed to a network address, a sign-in through the tunnel at https://localhost:8443 from a client that is not a browser is refused ("the request did not come from this site"; a current browser is accepted). To recover, set it back to https://localhost:8443 and server.listen back to 127.0.0.1:8443, restart, finish every person's second step through the tunnel, then change both againnone
server.listenREACH_SERVER_SERVER_LISTENWhere the console listens (and the agent API too, unless agent_listen is set). Any host:port. A non-loopback address is refused at start-up while any active user has no two-step sign-in, with the users named. To finish those second steps set it back to 127.0.0.1:8443 (and public_url to https://localhost:8443), restart, sign in through the tunnel, then change both again127.0.0.1:8443
server.agent_listenREACH_SERVER_SERVER_AGENT_LISTENA separate listener for the agent API only (and health checks). The console listener then answers 404 to agent routes and this one answers 404 to everything else. Needs no two-step checkempty
server.console_urlREACH_SERVER_SERVER_CONSOLE_URLThe console's own address when it differs from public_url: https://, a host name and an optional port, nothing else (no path, query, fragment or user name; the server refuses to start otherwise). The same-origin check and the links on the Users page use it. public_url stays what goes into enrolment tokensempty
tls.modeREACH_SERVER_TLS_MODEfiles or self-signed. proxy is read but reach-server run refuses it with the message "tls.mode proxy is not available in this version of Reach", so it is not available in this build (a reverse proxy is planned, not built)files (init writes the mode you chose)
tls.cert_fileREACH_SERVER_TLS_CERT_FILECertificate chain; needed with files
tls.key_fileREACH_SERVER_TLS_KEY_FILEPrivate key; needed with files
tls.trusted_proxiesREACH_SERVER_TLS_TRUSTED_PROXIESProxy addresses to trust, for the proxy mode, which is not available in this build
database.driverREACH_SERVER_DATABASE_DRIVERsqlite or postgressqlite
database.pathREACH_SERVER_DATABASE_PATHSQLite file; needed for sqlite/var/lib/reach-server/reach.db
database.url_fileREACH_SERVER_DATABASE_URL_FILEFile holding the postgres:// address (mode 0600 on Unix)
database.urlREACH_SERVER_DATABASE_URLThe address itself. With postgres, give exactly one of url or url_file; prefer the file
keys.kek_fileREACH_SERVER_KEYS_KEK_FILEThe key-encryption key file. RequiredNone that matters: init writes the path of the key it made, <dir>/kek (on the packaged install /var/lib/reach-server/kek). When restoring, put the key back at the path server.toml names
log.levelREACH_SERVER_LOG_LEVELdebug, info, warn, errorinfo
catalogue.ai_services_fileREACH_SERVER_CATALOGUE_AI_SERVICES_FILEYour own AI services list, replacing the one shipped with the server (browser AI). A file that is not valid stops the server at start; a changed list is sent to agents only after an owner confirms it in the consoleempty (the shipped list)
backup.commandREACH_SERVER_BACKUP_COMMANDAccepted by the reader. Nothing runs it yet: a backup command is plannedempty

Identity. [[identity.providers]] (keys id, display_name, issuer, client_id, scopes, groups_claim) is the place for sign-in with an organisation's own identity. This build refuses to start if the list is not empty: "not available in this build". An empty [identity] section is accepted.

The RPM puts the KEK at /var/lib/reach-server/kek (administration).

Agent: agent.toml#

Path: /etc/reach-agent/agent.toml on Linux. Read when the service starts. The agent refuses the file if it, or its folder, can be written by anyone but root, and refuses unknown keys. Restart the service after a change.

KeyVariableMeaning
proxyREACH_AGENT_PROXYAn http:// or https:// proxy address
tls_ca_fileREACH_AGENT_TLS_CA_FILEExtra CA certificates to trust, for example reach-ca.pem (Certificates and TLS). Ignored when the enrolment token pinned the server's key (a self-signed server); used with a token that carries no pin
log_levelREACH_AGENT_LOG_LEVELdebug, info, warn, error
server_urlnoneChecked, but not used: after enrolment the server address comes from the identity

Agent: other environment variables#

VariableMeaning
REACH_AGENT_STATE_DIROverrides the state folder. Used for one-shot runs and tests. Defaults: Linux service /var/lib/reach-agent; Windows C:\ProgramData\Sys-Ki\Reach Agent\state; macOS /Library/Application Support/Sys-Ki/Reach Agent/state
REACH_AGENT_SOCKET, REACH_AGENT_CONFIG_DIRChange where collector and service meet and where agent.toml and the pause flag live. For tests and the install test only
REACH_AGENT_TEST_CHECKIN_SECONDSInstall tests only: 240 to 3600. Do not use in production (Linux guide)