diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-15 17:03:29 +0400 | 
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-15 17:03:29 +0400 | 
| commit | cbcaa3c01ec4d9ed95dc5af8232de1d10191bc44 (patch) | |
| tree | 02cd56bb6eba762024c33f2df3cbec4f7a1a27e1 /exes/rest/src/config.rs | |
| parent | c06cf52e887cc560f1fd4fa72713b239fe0102a6 (diff) | |
add metrics and jemalloc
Diffstat (limited to 'exes/rest/src/config.rs')
| -rw-r--r-- | exes/rest/src/config.rs | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/exes/rest/src/config.rs b/exes/rest/src/config.rs index 9593ac8..900d3fb 100644 --- a/exes/rest/src/config.rs +++ b/exes/rest/src/config.rs @@ -28,4 +28,11 @@ pub struct ReverseProxy {      pub discord: Discord,      pub ratelimiter_address: String,      pub ratelimiter_port: u16, +    #[serde(default = "default_upstream")] +    pub upstream: Option<String>, +} + +#[allow(clippy::unnecessary_wraps)] +fn default_upstream() -> Option<String> { +    Some("https://discord.com".to_string())  }  | 
