diff options
author | Alex Auvolat <alex@adnab.me> | 2023-04-05 09:50:26 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-04-05 09:50:26 +0200 |
commit | 71bfd5be2d7c90ecee19b2a736e793d9a432d1c8 (patch) | |
tree | 5a9f9a6dc25d78072b89ccecd9986e1fbb53d242 /src/config/options.rs | |
parent | c356c4d1c471acd9d2f7e1dcfd3a432442177b48 (diff) | |
download | diplonat-71bfd5be2d7c90ecee19b2a736e793d9a432d1c8.tar.gz diplonat-71bfd5be2d7c90ecee19b2a736e793d9a432d1c8.zip |
Remove ACME config, not used as we are doing ACME in Tricot now
Diffstat (limited to 'src/config/options.rs')
-rw-r--r-- | src/config/options.rs | 14 |
1 files changed, 0 insertions, 14 deletions
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<String>, -} - /// 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<RuntimeConfig> { 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, }) } |