Configuration (`.env`)
All settings are in the .env next to the docker-compose.yml. After a
change run docker compose up -d.
| Variable | Meaning |
|---|---|
POSTGRES_PASSWORD | Required. Database password. Startup refuses without a value. |
POSTGRES_DB, POSTGRES_USER | Database and user name (default opnexus). Only effective on the very first start of an empty volume, see Database names. |
ADMIN_USERNAME, ADMIN_PASSWORD | First account. Without a password one is generated. Only applies when the first account is created. |
OPNEXUS_SITES, OPNEXUS_DEFAULT_SNI | Addresses for the TLS proxy, see above. |
PROXY_BIND_ADDRESS, PROXY_HTTPS_PORT, PROXY_HTTP_PORT | Interface and ports of the proxy (default 0.0.0.0, 443, 80). |
FRONTEND_ORIGIN | Exact origins (https://…, comma-separated) from which API requests may come. Without a value the backend accepts only localhost. |
COOKIE_SECURE | true as soon as OPNexus is used only over HTTPS. |
TRUST_PROXY_HEADERS | true only behind a proxy that sets X-Forwarded-For. |
BIND_ADDRESS | Interface for backend and frontend (default 127.0.0.1). |
BACKEND_PORT, FRONTEND_PORT | Host ports (default 8100 and 3100), e.g. for a second instance. |
OPNEXUS_IMAGE_REPO, OPNEXUS_VERSION | Registry and version of the release images. OPNEXUS_VERSION is the "track", see Updates. |
UPDATE_CHECK_URL, UPDATE_CHECK_INTERVAL_HOURS | Notice about new versions, off by default. Both are also available in the web interface (version check and operating settings). The address in the .env takes precedence; the interval there is only the default that the web interface can override. |
COMPOSE_PROFILES=updater | Enables the optional updater for one-click updates. |
HEARTBEAT_URL | Heartbeat address, see Noticing an OPNexus outage. Easier in the web interface (operating settings); a value here takes precedence. |
OPNEXUS_RUN_AS_ROOT | 1 lets the backend run as root as in older versions. Normally it runs as an unprivileged user (uid 10001) and switches its data volumes to that user on start. Only for special cases, such as data directories that cannot be switched. |
ALLOW_INSECURE_FIREWALL_URLS | Allows http:// addresses for firewalls. Only for isolated labs. |
SMTP_CA_FILE, ALLOW_INSECURE_SMTP_AUTH | Own CA for the mail server (simpler: paste the PEM in the operating settings; the file here takes precedence) or SMTP login without encryption (stays blocked by default). |