From 104e2ce0a25917dfaaab7e62042cc611fc05125a Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 31 Oct 2020 17:28:56 +0100 Subject: [PATCH] Add "web" configuration entry --- src/util/config.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/config.rs b/src/util/config.rs index b985114..a78ef83 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -35,6 +35,8 @@ pub struct Config { pub rpc_tls: Option, 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 }