Files and folders on the machine
The three places
/etc/onprem-ai/holds what you write: the config files and the certificate authorities. The platform never changes them, and every release reads the control plane'sconfig.env: a setting name of an earlier release keeps working, with a warning that names the new name, and a name the release does not know is skipped with a warning./opt/onprem-ai/holds the program and the release. Each install and update replaces it. You edit nothing in it./var/lib/onprem-ai/holds the data the platform writes while it runs. It belongs to the release that wrote it: an install takes it up only with that same release, and only an update takes it to another release.
On a Mac the control plane keeps the same three places under /Users/Shared/onprem-ai/, a folder Docker Desktop shares with its containers: settings/control-plane/ for your settings, control-plane/ for the program and var/control-plane/ for the data.
What to back up from each place, and how, is in Backing up and restoring.
The control plane
| Folder | What it holds | Who writes it |
|---|---|---|
/etc/onprem-ai/control-plane/ | config.env and the files it names; config-help.env | A new install writes config.env when there is none; then only you. onprem-ai-ctl writes config-help.env and keeps it current: do not edit it |
/etc/onprem-ai/trusted-certificate-authorities/ | Your own certificate authorities | You |
/opt/onprem-ai/control-plane/ | The program bin/onprem-ai-ctl (linked as /usr/local/bin/onprem-ai-ctl, and /usr/bin/onprem-ai-ctl on Linux), the installed release compose.yaml, and the release before it, compose.previous.yaml, to go back to | Each install and update |
/var/lib/onprem-ai/control-plane/ | The generated config files, machine-identity.generated.env, secrets/ (written at the first install and kept; an update adds a secret a newer release needs; see Secrets), tls/ (the certificate files given to the install) and state/ (the installed release in state/installed-release/release.json, each update's progress and log in state/updates/) | The install, apply and each update |
| The container engine's volumes | The database, the object storage, the metrics | The platform |
The volumes survive every update, a restart and docker compose down. Three of them hold nothing that is lost with them, because the control plane writes them again: edge-certificates (the certificates the control plane presents on its two ports), machine-addresses (this machine's network addresses, detected at start and every 30 seconds) and the trust bundle built from your certificate authorities at each start.
The inference node
| Folder | What it holds | Who writes it |
|---|---|---|
/etc/onprem-ai/inference-node/ | config.env | You |
/etc/onprem-ai/trusted-certificate-authorities/ | Your own certificate authorities | You |
/opt/onprem-ai/inference-node/ | The installed versions of the node | Each install and update |
/var/lib/onprem-ai/inference-node/ | The node's data: its identity, its records, and by default its model weights | The platform |
What the node's data folder holds, its defaults on each system, and how to keep the model weights on another disk is in Data directories.
Which file to edit for what
| You want to | Edit | Then |
|---|---|---|
| Change a setting of the control plane: ports, proxy, single sign-on, secure cookies, session time, minimum TLS version, catalogs, object storage | /etc/onprem-ai/control-plane/config.env (root, mode 0600) | sudo onprem-ai-ctl apply |
| Change a setting of an inference node, for example its proxy | /etc/onprem-ai/inference-node/config.env | sudo systemctl restart onprem-ai-inference-node |
| Trust your own certificate authority | Add the file to /etc/onprem-ai/trusted-certificate-authorities/ | As Trusting your own certificate authority shows |
| Set the control plane's proxy | HTTPS_PROXY and NO_PROXY in the control plane's config.env | sudo onprem-ai-ctl apply |
A reboot and onprem-ai-ctl start do not read config.env. apply and onprem-ai-ctl restart do. sudo onprem-ai-ctl doctor shows the settings in effect and the edits that wait for apply.
config.env holds only the settings you set. A setting that is not in the file has its default. config-help.env in the same folder lists every setting with its explanation and an example line: copy a line from there into config.env, give it your value, and run sudo onprem-ai-ctl apply.
When /etc/onprem-ai/control-plane/config.env does not exist (a machine installed before release 5.7.0), the control plane runs with the settings in effect. When you write the file on such a machine, write every setting into it that is in effect and that you want to keep, because the file is the complete list: sudo onprem-ai-ctl doctor shows the settings in effect. An update does not start on such a machine while a setting is in effect that the file does not name: the Updates page and onprem-ai-ctl update name each setting and the steps to write it into the file. The old path /etc/onprem-ai/inference-node.env of the node is still read too.
Files you never edit
- A file with
.generatedin its name (config.generated.env,backend.generated.env,machine-identity.generated.env) is written by the platform. The nextapply, restart, install or update replaces the first two. The first install writesmachine-identity.generated.env, and nothing writes it again: inference nodes know the machine by it. Never edit any of them. .envandcompose.override.yamlin/opt/onprem-ai/control-plane/are placeholders. Each holds only a comment that points to the config file. Nothing reads them, and anything you write there has no effect.