server:
  host: "0.0.0.0"
  port: 8080
  log_level: "INFO"
  # CORS: restrict to localhost by default.
  # For LAN access, add your machine's IP, e.g. "http://192.168.1.100:8080"
  cors_origins:
    - "http://localhost:8080"

auth:
  # API keys — when empty, authentication is disabled (open access).
  # To enable auth, add one or more label: "api-key" entries.
  # Generate secure keys: openssl rand -hex 32
  api_keys:
    dev: "development-key-change-in-production"

storage:
  database_file: "data/ledgrab.db"

mqtt:
  enabled: false
  broker_host: "localhost"
  broker_port: 1883
  username: ""
  password: ""
  client_id: "ledgrab"
  base_topic: "ledgrab"

logging:
  format: "json"  # json or text
  file: "logs/wled_controller.log"
  max_size_mb: 100
  backup_count: 5
