aboutsummaryrefslogtreecommitdiff
path: root/src/config/options.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-30 20:42:56 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-30 20:42:56 +0100
commit04bdd029fefbce08184c12809b5d6e4bf2a12fa1 (patch)
tree9f03cccf6558df489ff05c65c23d6a01a7a2f02d /src/config/options.rs
parent4560622fa125afb8ac5161f8d0e8a353f99f7a38 (diff)
downloaddiplonat-04bdd029fefbce08184c12809b5d6e4bf2a12fa1.tar.gz
diplonat-04bdd029fefbce08184c12809b5d6e4bf2a12fa1.zip
Add TLS support for Consul
Diffstat (limited to 'src/config/options.rs')
-rw-r--r--src/config/options.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/options.rs b/src/config/options.rs
index f62d14c..7334083 100644
--- a/src/config/options.rs
+++ b/src/config/options.rs
@@ -37,6 +37,12 @@ pub struct ConfigOptsConsul {
pub node_name: Option<String>,
/// Consul's REST URL [default: "http://127.0.0.1:8500"]
pub url: Option<String>,
+ /// Consul's CA certificate [default: None]
+ pub ca_cert: Option<String>,
+ /// Consul's client certificate [default: None]
+ pub client_cert: Option<String>,
+ /// Consul's client key [default: None]
+ pub client_key: Option<String>,
}
/// Model of all potential configuration options