Skip to content

Configuration Reference

BarakoCMS is configured via appsettings.json and Environment Variables.

Core Settings

SettingTypeDescription
ConnectionStrings:DefaultConnectionstringRequired. PostgreSQL connection string.
JWT:KeystringRequired. Secret key for signing tokens (min 32 chars).
JWT:IssuerstringToken issuer (default: "BarakoCMS").
JWT:AudiencestringToken audience (default: "BarakoCMS").
BaseUrlstringPublic URL of the API (for email links).

Feature Flags

SettingTypeDefaultDescription
Features:UseAsyncWorkflowsbooltrueEnable background workflow processing.
Features:EnableOpenApiboolfalseEnable Swagger UI in Production.

Validation Settings

SettingTypeDefaultDescription
Validation:StrictbooltrueReject unknown fields in JSON payload.

Environment Variables

For production (e.g., Docker, Azure), override settings using double underscores:

bash
# Override Connection String
export ConnectionStrings__DefaultConnection="Host=prod-db;..."

# Override JWT Key
export JWT__Key="vERY-sECRET-kEY-tHAT-iS-lONG-eNOUGH-123!"

Brewed in the baryo ☕ · Released under the MIT License.