diff --git a/src/admin/socket.rs b/src/admin/socket.rs index 303c5cf..eb11cfe 100644 --- a/src/admin/socket.rs +++ b/src/admin/socket.rs @@ -422,6 +422,7 @@ mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" acme_directory = "staging" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" @@ -563,6 +564,7 @@ mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" acme_directory = "staging" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" diff --git a/src/cli.rs b/src/cli.rs index 3f59767..89323ea 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -274,6 +274,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme" +acme_contact = "mailto:admin@test.local" "#; let config_path = dir.path().join("config.toml"); std::fs::write(&config_path, toml).unwrap(); @@ -311,6 +312,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme" +acme_contact = "mailto:admin@test.local" "#; let config_path = dir.path().join("config.toml"); std::fs::write(&config_path, toml).unwrap(); @@ -367,6 +369,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme" +acme_contact = "mailto:admin@test.local" "#; let config_path = dir.path().join("config.toml"); std::fs::write(&config_path, toml).unwrap(); diff --git a/src/shutdown.rs b/src/shutdown.rs index e0eef33..4bfb2b4 100644 --- a/src/shutdown.rs +++ b/src/shutdown.rs @@ -198,6 +198,7 @@ mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" acme_directory = "staging" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" diff --git a/src/tls/acceptor.rs b/src/tls/acceptor.rs index 4f05eae..d12e32a 100644 --- a/src/tls/acceptor.rs +++ b/src/tls/acceptor.rs @@ -209,4 +209,4 @@ mod tests { let err = result.unwrap_err().to_string(); assert!(err.contains("unknown TLS mode")); } -} \ No newline at end of file +} diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 4ef164d..025a08a 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -511,6 +511,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" @@ -818,6 +819,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" +acme_contact = "mailto:admin@test.local" acme_directory = "staging" [[listeners.sites]]