Docs / Operating

Configuration reference

Every environment variable the server understands.

The server is configured with environment variables. In the Compose bundle they are set from .env.

Core

VariableDefaultDescription
DATABASE_URLrequiredPostgreSQL connection string, e.g. postgres://syncloom:secret@db:5432/syncloom
LISTEN_ADDR0.0.0.0:8080Address and port to bind
PUBLIC_URLhttp://localhost:8080The address users reach the service at. Security keys (WebAuthn) bind to its host name, and OIDC redirects use it. Changing the host later invalidates registered security keys.
RUST_LOGinfo,sqlx=warnLog filter
MAINTENANCE_INTERVAL_SECS3600How often retention and garbage collection run
CORS_ORIGINS(none)Comma-separated browser origins allowed for cross-origin development

Blob storage

VariableDefaultDescription
BLOB_BACKENDfsfs or s3
BLOB_PATH./data/blobsDirectory for fs
S3_BUCKETBucket name (required for s3)
S3_REGIONus-east-1
S3_ENDPOINTCustom endpoint for S3-compatible stores (MinIO, Ceph, …)
S3_ACCESS_KEY, S3_SECRET_KEYCredentials (otherwise the default AWS credential chain is used)

Sign-in

VariableDefaultDescription
LOCAL_AUTHtrueAllow built-in accounts (password plus a second factor). Set false for OIDC only
OIDC_ISSUERIssuer URL of your identity provider
OIDC_CLIENT_ID
OIDC_CLIENT_SECRET
OIDC_AUTO_PROVISIONfalseCreate accounts automatically on first SSO sign-in

Compose bundle

VariableDescription
SYNCLOOM_DOMAINPublic host name; Caddy obtains a certificate for it
POSTGRES_PASSWORDPassword for the bundled database
SYNCLOOM_VERSIONImage tag to run (default latest)