tangled
alpha
login
or
join now
ptr.pet
/
Allegedly
forked from
microcosm.blue/Allegedly
0
fork
atom
Server tools to backfill, tail, mirror, and verify PLC logs
0
fork
atom
overview
issues
pulls
pipelines
configure experimental domain earlier
bad-example.com
5 months ago
8c985c6c
bacedf04
+8
-5
2 changed files
expand all
collapse all
unified
split
src
bin
mirror.rs
mirror.rs
+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
88
-
log::info!("configuring acme for https at {acme_domain:?}...");
89
88
create_dir_all(&cache_path).await?;
89
89
+
let mut domains = acme_domain.clone();
90
90
+
if let Some(ref experimental_domain) = experimental_acme_domain {
91
91
+
domains.push(experimental_domain.clone())
92
92
+
}
93
93
+
log::info!("configuring acme for https at {domains:?}...");
90
94
ListenConf::Acme {
91
91
-
domains: acme_domain,
95
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
399
-
if let Some(domain) = experimental.acme_domain {
400
400
-
auto_cert = auto_cert.domain(domain);
401
401
-
}
402
399
let auto_cert = auto_cert.build().expect("acme config to build");
400
400
+
401
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" });