# Kivo settings: one file for everything. Save it as .env next to docker-compose.yml, # then fill in the values marked "required". Keep it private (chmod 600) and backed up. # Kivo refuses to start, and logs each problem, if a required value is missing or unsafe. # --- Images ----------------------------------------------------------------------------- # Published on Docker Hub as invicly/kivo and invicly/kivo-migrate. # To update Kivo, change KIVO_VERSION and run: docker compose pull && docker compose up -d KIVO_REGISTRY=invicly/ KIVO_VERSION=1.0.0 # --- What runs here --------------------------------------------------------------------- # db PostgreSQL in Docker on this server (remove it for a managed database) # https Caddy with an automatic Let's Encrypt certificate for KIVO_DOMAIN # (remove it behind your own proxy or load balancer, and on your own computer) COMPOSE_PROFILES=db,https # --- Address (required) ----------------------------------------------------------------- # The domain people use; its DNS A record must point at this server. KIVO_DOMAIN=kivo.example.com AUTH_URL=https://kivo.example.com # --- Secrets (required) ----------------------------------------------------------------- # openssl rand -base64 32 (keep it stable: changing it signs everyone out and makes # stored two-factor secrets unreadable) AUTH_SECRET= # --- Database (required) ---------------------------------------------------------------- # PostgreSQL in Docker ("db" profile): set a password. Use hex (openssl rand -hex 24), # so it needs no escaping in a URL. POSTGRES_USER=kivo POSTGRES_PASSWORD= POSTGRES_DB=kivo # Or a managed database (RDS, Azure Database, Cloud SQL, DigitalOcean…): set this and # remove "db" from COMPOSE_PROFILES. URL-encode special characters in the password. # DATABASE_URL=postgresql://kivo:@:5432/kivo?sslmode=require # --- Email (required: sign-up codes, invitations, password resets, notices) -------------- # Most clouds block port 25; use 465 (SMTP_SECURE=true) or 587 (SMTP_SECURE=false). SMTP_HOST=smtp.example.com SMTP_PORT=465 SMTP_SECURE=true SMTP_USERNAME= SMTP_PASSWORD= SMTP_FROM_EMAIL=kivo@example.com SMTP_FROM_NAME=Kivo # --- Licensing: this Kivo Control --------------------------------------------------------- KIVO_CONTROL_URL=https://kivo-control.invicly.com KIVO_LICENSE_PUBLIC_KEYS="lic-2026-09:MCowBQYDK2VwAyEAzWdTL0qB3C7ZDkfbdcn0u4MADyzGFR9suPCuNkf8mbQ=" KIVO_LICENSE_GRACE_DAYS=14 # The name you'll see for this installation in your Kivo Control portal. KIVO_INSTANCE_NAME=Kivo # Days of a new workspace's free trial of every feature (0-90; 0 = a key from the start). KIVO_TRIAL_DAYS=15 # Sample data for new accounts' first workspace. Keep off in production. KIVO_DEMO_DATA_ENABLED=false # --- Behind proxies ----------------------------------------------------------------------- # Proxies in front of the app that add to X-Forwarded-For: 1 for Caddy or one load # balancer, 2 with a CDN in front of a load balancer. TRUSTED_PROXY_HOPS=1 # Where the app's port 3000 is published. Keep 127.0.0.1 with Caddy or a proxy on this # server; 0.0.0.0 only behind a cloud load balancer, with port 3000 firewalled to it. APP_BIND=127.0.0.1 CORS_ALLOWED_ORIGINS= CSP_REPORT_ONLY=false LOG_LEVEL=info # --- Scheduled jobs (reminders, report emails, license checks) --------------------------- # They run inside the app every SCHEDULER_INTERVAL_SECONDS. To trigger them from outside # instead, set SCHEDULER=off and CRON_SECRET (openssl rand -base64 32), then call # POST /api/cron/run with "Authorization: Bearer " every few minutes. SCHEDULER=on SCHEDULER_INTERVAL_SECONDS=300 CRON_SECRET= # --- Single sign-on (optional) ------------------------------------------------------------ AUTH_GOOGLE_ID= AUTH_GOOGLE_SECRET= AUTH_MICROSOFT_ENTRA_ID_ID= AUTH_MICROSOFT_ENTRA_ID_SECRET= AUTH_MICROSOFT_ENTRA_ID_ISSUER= AUTH_OIDC_ISSUER= AUTH_OIDC_ID= AUTH_OIDC_SECRET= AUTH_OIDC_NAME=SSO