#[derive(Debug)] pub struct HostConfig { pub brain_url: String, pub host_ip_address: String, pub owner_wallet: String, pub max_cores_per_app: u32, pub max_vcpu_reservation: u32, pub max_mem_reservation_mb: u32, pub max_ports_per_app: u16, // price per unit per minute pub price: u64, pub delete_archive: bool, } impl Default for HostConfig { fn default() -> Self { // TODO: load from config file let brain_url = std::env::var("BRAIN_URL").unwrap_or_else(|_| "http://127.0.0.1:31337".to_string()); let owner_wallet = "0x".to_string(); let host_ip_address = "127.0.0.1".to_string(); let max_cores_per_app = 4; let max_vcpu_reservation = 8; let max_mem_reservation_mb = 8192; let max_ports_per_app = 9; let price = 0; Self { brain_url, host_ip_address, owner_wallet, max_cores_per_app, max_ports_per_app, max_vcpu_reservation, max_mem_reservation_mb, price, delete_archive: true, } } }