summaryrefslogtreecommitdiff
path: root/exes/rest/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exes/rest/src/config.rs')
-rw-r--r--exes/rest/src/config.rs7
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())
}