From bc2b14b88f1daedfcbce50aff5d93ea7c7149cc3 Mon Sep 17 00:00:00 2001 From: Frando Date: Fri, 12 Jun 2026 09:37:48 +0200 Subject: [PATCH] support IROH_RELAY_ACME_URL env var --- iroh-relay/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iroh-relay/src/main.rs b/iroh-relay/src/main.rs index 92244e4771..828e040c61 100644 --- a/iroh-relay/src/main.rs +++ b/iroh-relay/src/main.rs @@ -640,7 +640,12 @@ async fn load_cert_config(tls: &TlsConfig) -> Result { .contact .clone() .std_context("LetsEncrypt needs a contact email")?; - let acme_config = AcmeConfig::letsencrypt(tls.prod_tls) + let acme_config = if let Ok(url) = std::env::var("IROH_RELAY_ACME_URL") { + AcmeConfig::new(url) + } else { + AcmeConfig::letsencrypt(tls.prod_tls) + }; + let acme_config = acme_config .domains(domains) .contact(vec![format!("mailto:{contact}")]) .cache_path(tls.cert_dir());