This commit is contained in:
mdecimus
2024-01-07 15:34:46 +01:00
parent 3a800aff7a
commit d829b56571
9 changed files with 49 additions and 13 deletions

View File

@@ -274,6 +274,7 @@ pub enum DirectoryError {
NoTlsAlpn01Challenge,
}
#[allow(unused_mut)]
async fn https(
url: impl AsRef<str>,
method: Method,

View File

@@ -93,12 +93,6 @@ impl Config {
})
.collect::<Vec<_>>();
let cache = PathBuf::from(self.value_require(("acme", acme_id, "cache"))?);
if !cache.exists() {
std::fs::create_dir_all(&cache).map_err(|err| {
format!("Failed to create ACME cache directory {:?}: {}", cache, err)
})?;
}
let renew_before: Duration =
self.property_or_static(("acme", acme_id, "renew-before"), "30d")?;

View File

@@ -115,6 +115,8 @@ pub trait SessionManager: Sync + Send + 'static + Clone {
tracing::debug!(
context = "tls",
event = "error",
instance = session.instance.id,
protocol = ?session.instance.protocol,
remote.ip = session.remote_ip.to_string(),
"Failed to accept TLS connection: {}",
err