smartbotic-db.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # SmartBotic Database Configuration
  2. # This is the default configuration file for smartbotic-db
  3. #
  4. # Configuration priority (highest to lowest):
  5. # 1. Command-line arguments (e.g., --port 50052)
  6. # 2. Environment variables (e.g., SMARTBOTIC_DB_PORT=50052)
  7. # 3. This config file
  8. # 4. Built-in defaults
  9. # Server configuration
  10. server:
  11. # Address to bind to (default: 0.0.0.0)
  12. address: "0.0.0.0"
  13. # Port to listen on (default: 50051)
  14. port: 50051
  15. # Storage configuration
  16. storage:
  17. # Data directory for snapshots and metadata
  18. # Can be overridden with SMARTBOTIC_DB_DATA_DIR environment variable
  19. data_dir: "./data"
  20. # Snapshot configuration
  21. snapshot:
  22. # Enable automatic snapshots (default: true)
  23. enabled: true
  24. # Interval between automatic snapshots in seconds (default: 300 = 5 minutes)
  25. interval_seconds: 300
  26. # Number of document changes to trigger a snapshot (default: 100)
  27. change_threshold: 100
  28. # Logging configuration
  29. logging:
  30. # Log level: trace, debug, info, warn, error, critical, off
  31. # Can be overridden with SMARTBOTIC_DB_LOG_LEVEL environment variable
  32. level: "info"
  33. # Security configuration
  34. security:
  35. # Path to encryption key file (optional)
  36. # The encryption key can also be provided via SMARTBOTIC_DB_ENCRYPTION_KEY environment variable
  37. # which is recommended for production environments to avoid storing secrets in files
  38. # encryption_key_path: "/etc/smartbotic/encryption.key"