Skip to main content

Configuration

SafariDesk reads configuration from the .env file located in Core/. Tip: make a copy of .env.example as .env and edit with your editor. Keep secrets safe.

Required settings (basic install)

Database (Postgres container in Docker Compose):
Redis and Celery (required for background jobs):
Superuser (used for first login):
Email (required if you need outgoing mail):
Public URLs (update when using a domain or reverse proxy):

Optional: AI and embeddings

If you plan to enable AI features, set keys and models:

Enterprise licensing settings

If you are using the self-hosted enterprise edition, you must configure licensing during setup. Common values required for enterprise activation:
  • License key
  • Stable instance ID
  • Deployment type (self_hosted)
  • Edition (enterprise)
  • Hostname
  • Response signing secret used to verify license responses
The architecture and validation flow are documented in Architecture. If SafariDesk support provided specific environment variable names for your build, add them to .env and restart the stack:
Then validate by checking API logs:

Notes

  • For production, use strong random SECRET_KEY and secure passwords
  • Keep backups of .env but never commit it to source control
  • After changing .env, restart the stack: docker compose up -d --build