Environment variables

The full list of variables that configure a OneSVD node.

Every deployment-specific value is an environment variable, so one build runs anywhere. Set them before installing or in the service environment.

Paths & ports#

The hub reads these at runtime. onesvd writes them into the service units from your config, so the way to change them is onesvd dir and onesvd config set — not by exporting these directly.

VariableConfig keyDefaultDescription
ONESVD_ROOTwatch_dir(chosen at install)Watched directory (absolute, auto-created).
ONESVD_HUB_PORThub_port4000Hub WebSocket + HTTP port.
ONESVD_INGEST_PORTingest_port4001Loopback ingest port.
frontend_port7777Web client port (passed to Next.js).

Access#

VariableDefaultDescription
ONESVD_TOKEN(empty)Bearer token for write endpoints and the UI.
ONESVD_ALLOW_IPS(empty)Comma-separated IP allowlist (loopback always allowed).
Note:

The token, allowlist, and TLS values aren't managed by onesvd config. The hub reads them from its environment — set them in ~/.local/share/onesvd/server/.env (auto-loaded on start) or in the systemd unit.

TLS#

VariableDescription
ONESVD_TLS_KEYPrivate key path; enables HTTPS/WSS with the cert.
ONESVD_TLS_CERTFull-chain certificate path.
ONESVD_PUBLIC_HOSTPublic hostname for absolute links.

Installer#

These tune the curl … | bash bootstrap.

VariableDefaultDescription
ONESVD_HOME~/.local/share/onesvdWhere the source is cloned and built.
ONESVD_REPO(repo URL)Git URL to clone.
ONESVD_BRANCHmainBranch to check out.
ONESVD_NO_LINGER(unset)Set to 1 to skip enabling systemd linger — no boot-start and no sudo prompt.

The old ONESVD_FRONTEND_MODE is now a config key: switch the dev server on with onesvd config set frontend_mode dev.