aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-10-31 17:28:56 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-10-31 17:28:56 +0100
commit104e2ce0a25917dfaaab7e62042cc611fc05125a (patch)
tree66fcbd3e80d6d6801e873694eb66cf526f305d8d /src
parent5faf069e3373ebec148a8e81e31b696f0fe746a1 (diff)
downloadgarage-104e2ce0a25917dfaaab7e62042cc611fc05125a.tar.gz
garage-104e2ce0a25917dfaaab7e62042cc611fc05125a.zip
Add "web" configuration entry
Diffstat (limited to 'src')
-rw-r--r--src/util/config.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index b985114d..a78ef830 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -35,6 +35,8 @@ pub struct Config {
pub rpc_tls: Option<TlsConfig>,
pub s3_api: ApiConfig,
+
+ pub s3_web: WebConfig,
}
#[derive(Deserialize, Debug, Clone)]
@@ -50,6 +52,11 @@ pub struct ApiConfig {
pub s3_region: String,
}
+#[derive(Deserialize, Debug, Clone)]
+pub struct WebConfig {
+ pub website_bind_addr: SocketAddr,
+}
+
fn default_max_concurrent_rpc_requests() -> usize {
12
}