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.
| Key | Variable | Meaning | Default |
|---|---|---|---|
server.public_url | REACH_SERVER_SERVER_PUBLIC_URL | The 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 again | none |
server.listen | REACH_SERVER_SERVER_LISTEN | Where 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 again | 127.0.0.1:8443 |
server.agent_listen | REACH_SERVER_SERVER_AGENT_LISTEN | A 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 check | empty |
server.console_url | REACH_SERVER_SERVER_CONSOLE_URL | The 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 tokens | empty |
tls.mode | REACH_SERVER_TLS_MODE | files 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_file | REACH_SERVER_TLS_CERT_FILE | Certificate chain; needed with files | |
tls.key_file | REACH_SERVER_TLS_KEY_FILE | Private key; needed with files | |
tls.trusted_proxies | REACH_SERVER_TLS_TRUSTED_PROXIES | Proxy addresses to trust, for the proxy mode, which is not available in this build | |
database.driver | REACH_SERVER_DATABASE_DRIVER | sqlite or postgres | sqlite |
database.path | REACH_SERVER_DATABASE_PATH | SQLite file; needed for sqlite | /var/lib/reach-server/reach.db |
database.url_file | REACH_SERVER_DATABASE_URL_FILE | File holding the postgres:// address (mode 0600 on Unix) | |
database.url | REACH_SERVER_DATABASE_URL | The address itself. With postgres, give exactly one of url or url_file; prefer the file | |
keys.kek_file | REACH_SERVER_KEYS_KEK_FILE | The key-encryption key file. Required | None 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.level | REACH_SERVER_LOG_LEVEL | debug, info, warn, error | info |
catalogue.ai_services_file | REACH_SERVER_CATALOGUE_AI_SERVICES_FILE | Your 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 console | empty (the shipped list) |
backup.command | REACH_SERVER_BACKUP_COMMAND | Accepted by the reader. Nothing runs it yet: a backup command is planned | empty |
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.
| Key | Variable | Meaning |
|---|---|---|
proxy | REACH_AGENT_PROXY | An http:// or https:// proxy address |
tls_ca_file | REACH_AGENT_TLS_CA_FILE | Extra 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_level | REACH_AGENT_LOG_LEVEL | debug, info, warn, error |
server_url | none | Checked, but not used: after enrolment the server address comes from the identity |
Agent: other environment variables#
| Variable | Meaning |
|---|---|
REACH_AGENT_STATE_DIR | Overrides 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_DIR | Change 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_SECONDS | Install tests only: 240 to 3600. Do not use in production (Linux guide) |