# SmartBotic Database Configuration # This is the default configuration file for smartbotic-db # # Configuration priority (highest to lowest): # 1. Command-line arguments (e.g., --port 50052) # 2. Environment variables (e.g., SMARTBOTIC_DB_PORT=50052) # 3. This config file # 4. Built-in defaults # Server configuration server: # Address to bind to (default: 0.0.0.0) address: "0.0.0.0" # Port to listen on (default: 50051) port: 50051 # Storage configuration storage: # Data directory for snapshots and metadata # Can be overridden with SMARTBOTIC_DB_DATA_DIR environment variable data_dir: "./data" # Snapshot configuration snapshot: # Enable automatic snapshots (default: true) enabled: true # Interval between automatic snapshots in seconds (default: 300 = 5 minutes) interval_seconds: 300 # Number of document changes to trigger a snapshot (default: 100) change_threshold: 100 # Logging configuration logging: # Log level: trace, debug, info, warn, error, critical, off # Can be overridden with SMARTBOTIC_DB_LOG_LEVEL environment variable level: "info" # Security configuration security: # Path to encryption key file (optional) # The encryption key can also be provided via SMARTBOTIC_DB_ENCRYPTION_KEY environment variable # which is recommended for production environments to avoid storing secrets in files # encryption_key_path: "/etc/smartbotic/encryption.key"