# ============================================================================== # ChronoGrid Daemon — Example Configuration File # Copy to /etc/chronogrid/config.toml (Linux) or # %APPDATA%\ChronoGrid\config.toml (Windows) and adjust as needed. # All fields are optional — built-in defaults are used for any omitted key. # ============================================================================== # ── Database ─────────────────────────────────────────────────────────────────── [database] # Absolute path to the SQLCipher 4.x encrypted database file. # The daemon will create all parent directories on first boot. # # Linux default: /var/lib/chronogrid/data.db # Windows default: %APPDATA%\ChronoGrid\data.db path = "/var/lib/chronogrid/data.db" # ── Networking / P2P ────────────────────────────────────────────────────────── [network] # Path where the Ed25519 node identity keypair is persisted as JSON. # A new keypair is generated automatically if this file does not exist. # # Linux default: /var/lib/chronogrid/identity.json # Windows default: %APPDATA%\ChronoGrid\identity.json identity_path = "/var/lib/chronogrid/identity.json" # Path where the 256-bit cluster swarm key is persisted. # A new random key is generated automatically if this file does not exist. # All nodes in the same cluster MUST share the same swarm key. # # Linux default: /var/lib/chronogrid/swarm.key # Windows default: %APPDATA%\ChronoGrid\swarm.key swarm_key_path = "/var/lib/chronogrid/swarm.key" # libp2p Multiaddr listen addresses for the P2P swarm. # At least one address is required. Use port 0 for OS-assigned ephemeral ports. # # Examples: # TCP transport (Noise XK): "/ip4/0.0.0.0/tcp/7700" # QUIC-v1 transport (UDP): "/ip4/0.0.0.0/udp/7700/quic-v1" # Restrict to loopback (local only): "/ip4/127.0.0.1/tcp/7700" listen_addrs = [ "/ip4/0.0.0.0/tcp/7700", "/ip4/0.0.0.0/udp/7700/quic-v1", ] # ── Cryptography / Key Management ───────────────────────────────────────────── [crypto] # OS keychain service identifier used to store the master database key. # Change this only if you need to isolate multiple daemon installations. keychain_service = "com.chronogrid.p2p" # OS keychain account label for the master key credential. keychain_account = "master_key" # ── Logging ─────────────────────────────────────────────────────────────────── [logging] # Tracing filter directive controlling log verbosity. # Accepted values: "error" | "warn" | "info" | "debug" | "trace" # Also accepts target-specific directives: "chronogrid=debug,libp2p=warn" # This setting is overridden by the RUST_LOG environment variable or --log-level CLI flag. level = "info"