From 71bfd5be2d7c90ecee19b2a736e793d9a432d1c8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 5 Apr 2023 09:50:26 +0200 Subject: Remove ACME config, not used as we are doing ACME in Tricot now --- src/config/options.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/config/options.rs') diff --git a/src/config/options.rs b/src/config/options.rs index fc9df16..adb16f5 100644 --- a/src/config/options.rs +++ b/src/config/options.rs @@ -24,17 +24,6 @@ pub struct ConfigOptsBase { pub ipv6_only: bool, } -/// ACME configuration options -#[derive(Clone, Default, Deserialize)] -pub struct ConfigOptsAcme { - /// Whether ACME is enabled [default: false] - #[serde(default)] - pub enable: bool, - - /// The default domain holder's e-mail [default: None] - pub email: Option, -} - /// Consul configuration options #[derive(Clone, Default, Deserialize)] pub struct ConfigOptsConsul { @@ -56,7 +45,6 @@ pub struct ConfigOptsConsul { /// Model of all potential configuration options pub struct ConfigOpts { pub base: ConfigOptsBase, - pub acme: ConfigOptsAcme, pub consul: ConfigOptsConsul, } @@ -64,12 +52,10 @@ impl ConfigOpts { pub fn from_env() -> Result { let base: ConfigOptsBase = envy::prefixed("DIPLONAT_").from_env()?; let consul: ConfigOptsConsul = envy::prefixed("DIPLONAT_CONSUL_").from_env()?; - let acme: ConfigOptsAcme = envy::prefixed("DIPLONAT_ACME_").from_env()?; RuntimeConfig::new(Self { base: base, consul: consul, - acme: acme, }) } -- cgit v1.2.3