Skip to content

Configure Cratis Chronicle with chronicle.json

Chronicle Server loads configuration from a chronicle.json file in the application root directory. In containers, this file is typically mounted at /app/chronicle.json.

The top-level webhooks and externalServices sections independently validate webhook receivers and HTTP capture sources. Both accept validation, allowInsecureHttp, allowedHosts, and eventStoreAllowedHosts. validation defaults to Warn in Development builds and BlockLocalAddresses otherwise. For example:

{
"webhooks": { "validation": "BlockLocalAddresses", "allowedHosts": ["hooks.example.com"] },
"externalServices": { "validation": "BlockLocalAddresses", "allowedHosts": ["api.example.com"] }
}

For private-network approvals, additional modes, metadata protection, and migration guidance, see Webhook target validation and HTTP capture destination policy.

{
"port": 35000,
"healthCheckEndpoint": "/health",
"features": {
"api": true,
"workbench": true,
"changesetStorage": false,
"oAuthAuthority": true
},
"storage": {
"type": "MongoDB",
"connectionDetails": "mongodb://localhost:27017"
},
"observers": {
"subscriberTimeout": 5,
"maxRetryAttempts": 10,
"backoffDelay": 1,
"exponentialBackoffDelayFactor": 2,
"maximumBackoffDelay": 600
},
"readModels": {
"replayedVersionsToKeep": 1
},
"events": {
"queues": 8
},
"authentication": {
"authority": null,
"defaultAdminUsername": "admin",
"signInThrottling": {
"maxFailedAttempts": 5,
"maxFailedAttemptsPerUsername": 50,
"windowSeconds": 300,
"lockoutSeconds": 300,
"maxTrackedEntries": 10000
},
"adminUser": {
"username": "admin",
"password": "your-secure-password",
"email": "admin@example.com",
"requirePasswordChangeOnFirstLogin": true
}
},
"tls": {
"certificatePath": "/certs/chronicle.pfx",
"certificatePassword": "your-password"
},
"encryptionCertificate": {
"certificatePath": "/certs/encryption-cert.pfx",
"certificatePassword": "your-password"
}
}

Note that the sections are not wrapped in Cratis / Chronicle here — Chronicle republishes everything it reads from chronicle.json under the Cratis:Chronicle: configuration path itself. That prefix belongs on environment variables only.

Environment variables can override any of these values. See Configuration Precedence for details.

Section Description
port, healthCheckEndpoint Root properties for the port and health check path
features Feature toggles for API, Workbench, and OAuth authority
storage Storage provider configuration
observers Retry and timeout settings for observers
readModels Replay retention settings for replay-generated read model versions
events Event queue configuration
constraintIndexRepair Constraint-index repair budgets, retries and memory caps
authentication Authentication, default admin username, and initial admin user bootstrap
tls TLS certificate for the main Chronicle port by default; explicit tls.enabled=false requires a private h2c backend behind an HTTPS proxy
encryptionCertificate Certificate protecting OAuth keys, webhook credentials, and Data Protection keys — required in builds without DEVELOPMENT when authentication, the OAuth authority feature, and use of the internal authority are all enabled
identityProvider Legacy certificate settings, accepted but ignored; see migration guidance