Server tools to backfill, tail, mirror, and verify PLC logs

configure experimental domain earlier

+8 -5
+6 -2
src/bin/mirror.rs
··· 85 85 86 86 let listen_conf = match (bind, acme_domain.is_empty(), acme_cache_path) { 87 87 (_, false, Some(cache_path)) => { 88 - log::info!("configuring acme for https at {acme_domain:?}..."); 89 88 create_dir_all(&cache_path).await?; 89 + let mut domains = acme_domain.clone(); 90 + if let Some(ref experimental_domain) = experimental_acme_domain { 91 + domains.push(experimental_domain.clone()) 92 + } 93 + log::info!("configuring acme for https at {domains:?}..."); 90 94 ListenConf::Acme { 91 - domains: acme_domain, 95 + domains, 92 96 cache_path, 93 97 directory_url: acme_directory_url.to_string(), 94 98 ipv6: acme_ipv6,
+2 -3
src/mirror.rs
··· 396 396 for domain in domains { 397 397 auto_cert = auto_cert.domain(domain); 398 398 } 399 - if let Some(domain) = experimental.acme_domain { 400 - auto_cert = auto_cert.domain(domain); 401 - } 402 399 let auto_cert = auto_cert.build().expect("acme config to build"); 400 + 401 + log::trace!("auto_cert: {auto_cert:?}"); 403 402 404 403 let notice_task = tokio::task::spawn(run_insecure_notice(ipv6)); 405 404 let listener = TcpListener::bind(if ipv6 { "[::]:443" } else { "0.0.0.0:443" });