diff --git a/src/images/mixer.rs b/src/images/mixer.rs index af117571..d153aaa1 100644 --- a/src/images/mixer.rs +++ b/src/images/mixer.rs @@ -23,6 +23,8 @@ pub struct MixerImage { pub log_level: Option, pub initial_peers: Option, // alt brokers pub default_tribe_pubkey: Option, + pub default_router: Option, + pub hub_url: Option, pub invite_price: Option, pub timeout_ms: Option, } @@ -42,6 +44,8 @@ impl MixerImage { log_level: None, initial_peers: None, default_tribe_pubkey: None, + default_router: None, + hub_url: None, invite_price: None, timeout_ms: None, } @@ -72,6 +76,12 @@ impl MixerImage { pub fn set_default_tribe_pubkey(&mut self, pk: &str) { self.default_tribe_pubkey = Some(pk.to_string()) } + pub fn set_default_router(&mut self, dr: &str) { + self.default_router = Some(dr.to_string()) + } + pub fn set_hub_url(&mut self, hu: &str) { + self.hub_url = Some(hu.to_string()) + } } #[async_trait] @@ -164,6 +174,12 @@ fn mixer(img: &MixerImage, broker: &BrokerImage, cln: &Option) -> Resu if let Some(dts) = &img.default_tribe_pubkey { env.push(format!("DEFAULT_TRIBE_PUBKEY={}", dts)); } + if let Some(dr) = &img.default_router { + env.push(format!("DEFAULT_ROUTER={}", dr)); + } + if let Some(hu) = &img.hub_url { + env.push(format!("HUB_URL={}", hu)); + } let mut c = Config { image: Some(format!("{}:{}", image, img.version)),