Configuration Reference

Settings are environment variables, read at start. Apply a change with docker compose up -d, or remove a docker run container and run it again; docker restart keeps the old values.

Basics

Setting Default Meaning
CDM_PUBLIC_URL required Address users open, for example https://cdm.example.com. Base for the sign-on redirect URI and the Open UI hosts.
CDM_SECRET_KEY required At least 32 characters (openssl rand -hex 32). Encrypts the stored cluster credentials. Back it up.
PORT 8234 Port inside the container.
CDM_DB sqlite:///data/cdm.db SQLite database.
CDM_DEMO_CLUSTER off, on with the demo login Demo clusters beside your own. off removes them at the next start; your clusters stay.
CDM_LOG_LEVEL info debug, info, warn, error
CDM_LOG_FORMAT text text or json
SSL_CERT_FILE built-in bundle CA bundle for the identity provider's certificate.
CDM_WEBSITE_URL https://www.croit.io Where emergency support requests go.

Demo login

Anyone who can reach CDM signs in through it, without a password: Try the Demo.

Setting Default Meaning
CDM_DEMO_LOGIN off viewer or admin adds a Try the demo button that signs in without a password, with that role.
CDM_DEMO_USERNAME croit.demo Name the demo user appears under.

Single sign-on

The first three are required unless CDM_DEMO_LOGIN is on; then leave all three out, or set all three to offer single sign-on beside the demo.

Setting Default Meaning
OIDC_DISCOVERY_URL required Provider's discovery document, usually ending in /.well-known/openid-configuration.
OIDC_CLIENT_ID required Client ID issued for CDM.
OIDC_CLIENT_SECRET required Its secret.
OIDC_ROLE_MAPPING empty Group to role, as JSON: {"storage-admins":"admin","noc":"viewer"}.
OIDC_DEFAULT_ROLES ["viewer"] Roles for users whose groups match nothing.
OIDC_GROUPS_CLAIM groups Claim that carries the group names.
OIDC_SCOPES openid email profile Requested scopes.
OIDC_CLIENT_AUTH basic basic or post, as your provider requires.