Configuration
Point the watcher at a directory, change ports, and set access controls — all through environment variables.
OneSVD splits configuration in two. Day-to-day settings — the watched directory, ports, and serve mode — live in ~/.config/onesvd/config.yml and are managed with the onesvd command. Security and TLS values are read by the hub from its environment.
Core#
Set these with onesvd dir and onesvd config set; they're stored in config.yml and applied to the services automatically.
| Setting | Default | What it does |
|---|---|---|
watch_dir | (chosen at install) | The watched directory. Resolved to an absolute path and created if missing. Change it with onesvd dir <path>. |
hub_port | 4000 | Hub WebSocket + HTTP port. |
ingest_port | 4001 | Loopback port the watcher publishes to. |
frontend_port | 7777 | Web client port. |
frontend_mode | prod | prod serves the production build; dev runs the dev server. |
onesvd dir ~/projects/releases
onesvd config set hub_port 4100
Keep the watched directory on a native Linux filesystem. Watching a Windows-mounted path under WSL won't deliver reliable change events.
Access control#
By default the node runs open on a trusted local network. These are read by the hub from its environment — set them in ~/.local/share/onesvd/server/.env (auto-loaded on start) or the systemd unit. To require a token:
| Variable | Default | What it does |
|---|---|---|
ONESVD_TOKEN | (empty) | Bearer token required for write endpoints and the UI. |
ONESVD_ALLOW_IPS | (empty) | Comma-separated IP allowlist. Loopback is always allowed. |
When a token is set, the browser exchanges it for a session cookie so shareable file links don't carry the secret.
TLS (production)#
Provide both to serve HTTPS/WSS instead of plain HTTP:
| Variable | What it does |
|---|---|
ONESVD_TLS_KEY | Path to the private key. |
ONESVD_TLS_CERT | Path to the full-chain certificate. |
ONESVD_PUBLIC_HOST | Public hostname used to build absolute links. |
If either cert path is missing, the hub serves plain HTTP — the localhost profile.