aboutsummaryrefslogtreecommitdiff
path: root/server/src/config.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-09-07 00:01:27 +0200
committermetamuffin <metamuffin@disroot.org>2023-09-07 00:01:27 +0200
commit6f644481f397af070e2b91b69846e375caafdbda (patch)
tree330bdaec6d7e2712e9694faeb7a2e11cc022daf3 /server/src/config.rs
parentbf434555952b3788185a1a875955fa1acbf170b3 (diff)
downloadkeks-meet-6f644481f397af070e2b91b69846e375caafdbda.tar
keks-meet-6f644481f397af070e2b91b69846e375caafdbda.tar.bz2
keks-meet-6f644481f397af070e2b91b69846e375caafdbda.tar.zst
prepare for room watches
Diffstat (limited to 'server/src/config.rs')
-rw-r--r--server/src/config.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/server/src/config.rs b/server/src/config.rs
index 870315e..0ae90eb 100644
--- a/server/src/config.rs
+++ b/server/src/config.rs
@@ -1,13 +1,20 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
-pub struct ClientConfig {
- pub webrtc: ClientWebrtcConfig,
- pub appearance: ClientAppearanceConfig,
+pub struct Config {
+ pub features: FeaturesConfig,
+ pub webrtc: WebrtcConfig,
+ pub appearance: AppearanceConfig,
}
+#[rustfmt::skip]
#[derive(Debug, Clone, Serialize, Deserialize)]
-pub struct ClientWebrtcConfig {
+pub struct FeaturesConfig {
+ #[serde(default)] pub watch_rooms: bool,
+}
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub struct WebrtcConfig {
pub stun: String,
pub turn: Option<String>,
pub turn_user: Option<String>,
@@ -15,7 +22,7 @@ pub struct ClientWebrtcConfig {
}
#[derive(Debug, Clone, Serialize, Deserialize)]
-pub struct ClientAppearanceConfig {
+pub struct AppearanceConfig {
pub accent: String,
pub accent_light: String,
pub accent_dark: String,