Skip to content

Commit

Permalink
Merge pull request #336 from stakwork/feat/link-admin-ui-to-boltwall
Browse files Browse the repository at this point in the history
feat: added swarm ui env to boltwall
  • Loading branch information
Evanfeenstra authored Oct 8, 2024
2 parents 6cc5fb2 + d0f93ee commit 6bcf785
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/images/boltwall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::config::Node;
use crate::conn::lnd::utils::{dl_cert_to_base64, dl_macaroon};
use crate::images::lnd::to_lnd_network;
use crate::secrets;
use crate::utils::{domain, exposed_ports, host_config, volume_string};
use crate::utils::{domain, exposed_ports, getenv, host_config, volume_string};
use anyhow::{Context, Result};
use async_trait::async_trait;
use bollard::container::Config;
Expand Down Expand Up @@ -209,6 +209,13 @@ fn boltwall(
env.push(format!("STAKWORK_SECRET={}", ss))
}

match getenv("HOST") {
Ok(host) => env.push(format!("SWARM_UI=https://app.{}", host)),
Err(err) => {
log::error!("Error geting env host: {}", err.to_string())
}
}

let mut c = Config {
image: Some(format!("{}:{}", img, node.version)),
hostname: Some(domain(&name)),
Expand Down

0 comments on commit 6bcf785

Please sign in to comment.