aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-06 23:40:41 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-06 23:40:41 +0100
commit61e6df6209b3c55e4c07c6baf2fabfba23a474f1 (patch)
treec74b70ab503ea3fab0342a5192eb5c969bd6692e /src/main.rs
parent2895a8ae2e99f11290800c14f038feda90e1787a (diff)
downloadtricot-61e6df6209b3c55e4c07c6baf2fabfba23a474f1.tar.gz
tricot-61e6df6209b3c55e4c07c6baf2fabfba23a474f1.zip
not much
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3bd8928..3289c46 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,6 +3,7 @@ extern crate anyhow;
mod consul;
mod proxy_config;
+mod acme;
use log::*;
@@ -11,9 +12,11 @@ async fn main() {
pretty_env_logger::init();
info!("Starting Tricot");
- let consul = consul::Consul::new("http://10.42.0.21:8500");
+ let consul = consul::Consul::new("http://10.42.0.21:8500", "tricot/");
let mut rx_proxy_config = proxy_config::spawn_proxy_config_task(consul.clone(), "carcajou");
+ tokio::spawn(acme::acme_task(consul.clone(), rx_proxy_config.clone()));
+
while rx_proxy_config.changed().await.is_ok() {
info!("Proxy config: {:#?}", *rx_proxy_config.borrow());
}