content: # Basilica Miner Configuration for Local Testing Environment
  # This configuration is optimized for development and integration testing
  
  [bittensor]
  wallet_name = "test_miner"
  hotkey_name = "default"
  network = "local"  # Use local network
  netuid = 1  # Local subnet ID
  chain_endpoint = "ws://localhost:9944"  # Local subtensor on host
  weight_interval_secs = 300
  # UID will be auto-discovered during registration
  coldkey_name = "default"
  axon_port = 8091
  external_ip = "127.0.0.1"  # Localhost for testing
  max_weight_uids = 256
  
  [database]
  url = "sqlite:///var/lib/basilica/miner/miner.db?mode=rwc"
  max_connections = 10
  min_connections = 1
  run_migrations = true
  
  [database.connect_timeout]
  secs = 30
  nanos = 0
  
  [database.max_lifetime]
  secs = 3600
  nanos = 0
  
  [server]
  host = "0.0.0.0"
  port = 8092
  max_connections = 1000
  tls_enabled = false
  
  [server.request_timeout]
  secs = 30
  nanos = 0
  
  [validator_comms]
  request_timeout = { secs = 30 }
  
  [executor_management]
  # Configure executor to connect to the local executor service
  [[executor_management.executors]]
  id = "localtest-executor"
  grpc_address = "localhost:50051"
  name = "LocalTest Executor"
  health_check_interval = { secs = 30 }  # More frequent for testing
  health_check_timeout = { secs = 10 }
  max_retry_attempts = 3
  auto_recovery = true
  
  [security]
  verify_signatures = false  # Disabled for local testing
  
  [logging]
  level = "debug"
  format = "pretty"
  stdout = true
  
  [metrics]
  enabled = true
  
  [metrics.prometheus]
  host = "0.0.0.0"
  port = 9092
  path = "/metrics"
  
  # Note: Remote executor deployment is disabled for local testing
  # In production, configure [remote_executor_deployment] section for 
  # automatic deployment to remote GPU machines via SSH