mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-10 22:36:53 +00:00
Trying to do TLS
This commit is contained in:
+4
-5
@@ -36,14 +36,14 @@ pub struct Config {
|
||||
#[serde(default = "default_replication_factor")]
|
||||
pub data_replication_factor: usize,
|
||||
|
||||
pub tls: TlsConfig,
|
||||
pub rpc_tls: Option<TlsConfig>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct TlsConfig {
|
||||
pub ca_cert: Option<String>,
|
||||
pub node_cert: Option<String>,
|
||||
pub node_key: Option<String>,
|
||||
pub ca_cert: String,
|
||||
pub node_cert: String,
|
||||
pub node_key: String,
|
||||
}
|
||||
|
||||
pub struct Garage {
|
||||
@@ -115,7 +115,6 @@ impl Garage {
|
||||
meta_rep_param.clone(),
|
||||
));
|
||||
|
||||
|
||||
let mut garage = Self {
|
||||
db,
|
||||
system: system.clone(),
|
||||
|
||||
Reference in New Issue
Block a user