Configuration
KalamDB can be configured via a config.toml file or environment variables.
Configuration File
Place a config.toml in the working directory or specify its path:
kalamdb-server --config /path/to/config.tomlKey Settings
[server]
host = "0.0.0.0"
port = 8080
[storage]
data_dir = "./data"
flush_policy = "rows:1000,interval:60"
[auth]
jwt_secret = "your-secret-key"
[cluster]
node_id = 1
peers = ["node2:8081", "node3:8082"]Environment Variables
All configuration options can be set via environment variables with the KALAMDB_ prefix:
| Environment Variable | Description | Default |
|---|---|---|
KALAMDB_HOST | Server bind address | 0.0.0.0 |
KALAMDB_PORT | Server port | 8080 |
KALAMDB_DATA_DIR | Data directory path | ./data |
KALAMDB_JWT_SECRET | JWT signing secret | (required) |
KALAMDB_LOG_LEVEL | Log verbosity | info |
Last updated on