OPNexusdocs

Configuration (`.env`)

All settings are in the .env next to the docker-compose.yml. After a change run docker compose up -d.

VariableMeaning
POSTGRES_PASSWORDRequired. Database password. Startup refuses without a value.
POSTGRES_DB, POSTGRES_USERDatabase and user name (default opnexus). Only effective on the very first start of an empty volume, see Database names.
ADMIN_USERNAME, ADMIN_PASSWORDFirst account. Without a password one is generated. Only applies when the first account is created.
OPNEXUS_SITES, OPNEXUS_DEFAULT_SNIAddresses for the TLS proxy, see above.
PROXY_BIND_ADDRESS, PROXY_HTTPS_PORT, PROXY_HTTP_PORTInterface and ports of the proxy (default 0.0.0.0, 443, 80).
FRONTEND_ORIGINExact origins (https://…, comma-separated) from which API requests may come. Without a value the backend accepts only localhost.
COOKIE_SECUREtrue as soon as OPNexus is used only over HTTPS.
TRUST_PROXY_HEADERStrue only behind a proxy that sets X-Forwarded-For.
BIND_ADDRESSInterface for backend and frontend (default 127.0.0.1).
BACKEND_PORT, FRONTEND_PORTHost ports (default 8100 and 3100), e.g. for a second instance.
OPNEXUS_IMAGE_REPO, OPNEXUS_VERSIONRegistry and version of the release images. OPNEXUS_VERSION is the "track", see Updates.
UPDATE_CHECK_URL, UPDATE_CHECK_INTERVAL_HOURSNotice 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=updaterEnables the optional updater for one-click updates.
HEARTBEAT_URLHeartbeat address, see Noticing an OPNexus outage. Easier in the web interface (operating settings); a value here takes precedence.
OPNEXUS_RUN_AS_ROOT1 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_URLSAllows http:// addresses for firewalls. Only for isolated labs.
SMTP_CA_FILE, ALLOW_INSECURE_SMTP_AUTHOwn 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).