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