aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-24 17:46:52 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-24 17:46:52 +0000
commitf2e05986c4d8cdf4abfde92e51e36f456e276ccd (patch)
tree174b2797468d47d6eb5ec6e3f4d0d768bb986151 /src/util/config.rs
parentd8f5e643bcee95969b59c309809710a38b0661e3 (diff)
downloadgarage-f2e05986c4d8cdf4abfde92e51e36f456e276ccd.tar.gz
garage-f2e05986c4d8cdf4abfde92e51e36f456e276ccd.zip
Starting to be S3 compatible
Diffstat (limited to 'src/util/config.rs')
-rw-r--r--src/util/config.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index cb871562..28349530 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -11,7 +11,6 @@ pub struct Config {
pub metadata_dir: PathBuf,
pub data_dir: PathBuf,
- pub api_bind_addr: SocketAddr,
pub rpc_bind_addr: SocketAddr,
pub bootstrap_peers: Vec<SocketAddr>,
@@ -32,6 +31,8 @@ pub struct Config {
pub data_replication_factor: usize,
pub rpc_tls: Option<TlsConfig>,
+
+ pub s3_api: ApiConfig,
}
#[derive(Deserialize, Debug, Clone)]
@@ -41,6 +42,12 @@ pub struct TlsConfig {
pub node_key: String,
}
+#[derive(Deserialize, Debug, Clone)]
+pub struct ApiConfig {
+ pub api_bind_addr: SocketAddr,
+ pub s3_region: String,
+}
+
fn default_max_concurrent_rpc_requests() -> usize {
12
}