oCoreoCore Docs

Configuration

Reference for all oCore configuration options including environment variables, backend settings, and frontend build-time configuration.

oCore is configured primarily through environment variables. This section provides a complete reference for every configuration option available in the backend and frontend.

Configuration Methods

oCore loads configuration from environment variables at startup. There is no configuration file to manage. This approach works well with Docker, systemd, and CI/CD pipelines.

For Docker Compose deployments, set variables in a .env file alongside your docker-compose.prod.yml:

.env
DATABASE_URL=postgres://ocore:password@postgres:5432/ocore?sslmode=disable
JWT_SECRET=your-secret-at-least-32-characters
APP_URL=https://ocore.example.com

Quick Reference

The most commonly configured variables for a production deployment:

VariableRequiredPurpose
DATABASE_URLYesPostgreSQL connection string
JWT_SECRETYesJWT signing key (min 32 characters)
APP_URLRecommendedPublic URL of the dashboard
SMTP_HOSTRecommendedEmail delivery for verification and notifications
SSH_ENCRYPTION_KEYProductionEncryption key for stored SSH credentials
NEXT_PUBLIC_API_URLYesBackend API URL for the frontend

See the Environment Variables page for the full list.

Was this page helpful?