aboutsummaryrefslogtreecommitdiff
path: root/src/config/options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/options.rs')
-rw-r--r--src/config/options.rs14
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,
})
}