v0.3.0 Latest

Environment variables

Every variable in .env.example, what it does, and its default.

Set in .env, read by docker compose and by the app. Admin → Settings shows the configuration the environment supplies, so nobody has to read a compose file to see how an instance is running.

Core

VariableRequiredDefaultDescription
DATABASE_URLyes—postgres://trove:<password>@db:5432/trove
POSTGRES_USERnotroveOverridable for deployments with their own naming rules
POSTGRES_DBnotrove
POSTGRES_PASSWORDyes—Must match DATABASE_URL
AUTH_SECRETyes—openssl rand -base64 32
APP_URLyeshttp://localhost:3080The public origin. Drives Secure cookies, OAuth state, absolute links
APP_PORTno3080Host port. The container always listens on 3000
APP_BINDno0.0.0.0127.0.0.1 keeps the port off the network behind a tunnel or proxy
APP_LOCALEnoen-USInterface language for a new visitor: en-US or en-GB. Readers can switch
SEED_ON_STARTno—true loads the starter doc types on boot
SEED_LOCALEnoen-USWording of the seeded content
CRON_SECRETno—Lets a scheduler drive webhook and schedule passes through /api/internal/webhooks. Empty keeps the endpoint inert
TROVE_DISABLE_WEBHOOK_WORKERno—true turns the in-process retry worker off, for a second replica
SCHEDULE_POLL_SECONDSno900How often the worker looks for schedules that have come due and domain checks whose time has come

Updates

Read by docker compose and by the host updater, which sets the first and third once installed.

VariableDefaultDescription
TROVE_IMAGE_TAGstableWhich published image runs: stable (the newest release), a release such as v0.3.0, or a dev build such as dev-1a2b3c4
TROVE_DEPLOY_MODEdockerdocker or bare-metal: how this server runs the app
TROVE_UPDATER_TOKEN—Shared by the app and the host updater. updater/install-updater.sh adds it
TROVE_IMAGEghcr.io/joshhearne/trove-kbThe image repository docker-compose.yml pulls from. Not in .env.example; set it only to run from a mirror
COMPOSE_FILE—Extra compose files, such as docker-compose.yml:docker-compose.nfs.yml or docker-compose.yml:docker-compose.build.yml. The updater’s docker compose reads it too

Limits

VariableDefaultDescription
APP_CPUS / APP_MEMORY2 / 1gContainer limits, so one busy upload cannot starve the host
DB_CPUS / DB_MEMORY2 / 1g
MAX_UPLOAD_MB25Per-attachment limit. Keep it under your Cloudflare plan’s body cap
KB_IMPORT_MAX_MB1024Largest knowledge base archive accepted
KB_IMPORT_DIR—Scratch space for unpacking imports; articles live in the database
KB_CONNECTOR_POLL_SECONDS300How often the worker looks for a knowledge base connector that is due

Mail and sign-in

VariableDescription
SMTP_URL, MAIL_FROMOutgoing mail for password reset links. Without them, a forgotten password is a temporary one from an administrator
OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRETAll three or none. Discovery is used; Entra ID, Google, Authentik, Keycloak all work. Redirect URI is <APP_URL>/api/auth/callback/oidc

Attachments

VariableDefaultDescription
STORAGE_DRIVERlocallocal, s3, or r2 (Workers)
STORAGE_PATH/data/uploadsIn-container path for local
NFS_SERVER, NFS_UPLOADS_PATH—With docker-compose.nfs.yml, keeps the uploads volume on a NAS. The database stays on local disk either way
S3_ENDPOINT, S3_REGION, S3_BUCKET, S3_ACCESS_KEY, S3_SECRET_KEY—Required when STORAGE_DRIVER=s3

Vault

VariableDefaultDescription
VAULT_MODElinklink, bw_serve, op_connect, or hashicorp_kv
BW_SERVER_URL, BW_WEB_VAULT_URL—Vaultwarden, self-hosted Bitwarden, or https://vault.bitwarden.com
BW_CLIENTID, BW_CLIENTSECRET—The service account’s API key, for bw_serve
BW_SERVE_URLhttp://bw-serve:8087The sidecar, on the internal network
BW_SERVE_ACCESS_CLIENT_ID, BW_SERVE_ACCESS_CLIENT_SECRET—Only when the sidecar sits behind a Cloudflare Tunnel with Access
BW_SYNC_INTERVAL_MIN5
BW_PUBLIC_API_CLIENT_ID, BW_PUBLIC_API_CLIENT_SECRET—Bitwarden Public API add-on, Teams/Enterprise only
OP_CONNECT_URL, OP_CONNECT_TOKEN—1Password Connect, --profile onepassword
HASHICORP_VAULT_ADDR, HASHICORP_VAULT_TOKEN, HASHICORP_VAULT_MOUNTsecretHashiCorp KV v2

The Bitwarden master password goes in ./secrets/bw_master_password.txt (chmod 600), never in .env. The 1Password credentials file goes in ./secrets/1password-credentials.json.