diff options
author | metamuffin <metamuffin@disroot.org> | 2023-04-04 11:15:03 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-04-04 11:15:03 +0200 |
commit | 99d1ab55dfb1714d8f574060e618dc93c94f245c (patch) | |
tree | b01f6ccb6b4060f120a71145fbbded0131c9430e /server/src/config.rs | |
parent | 84587df365c61297e08d00f28317b452681a4b84 (diff) | |
parent | fe36a0640f2e36baad1f08033f09b49bdd0f1062 (diff) | |
download | keks-meet-99d1ab55dfb1714d8f574060e618dc93c94f245c.tar keks-meet-99d1ab55dfb1714d8f574060e618dc93c94f245c.tar.bz2 keks-meet-99d1ab55dfb1714d8f574060e618dc93c94f245c.tar.zst |
Merge branch 'master' of codeberg.org:metamuffin/keks-meet
Diffstat (limited to 'server/src/config.rs')
-rw-r--r-- | server/src/config.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/src/config.rs b/server/src/config.rs new file mode 100644 index 0000000..870315e --- /dev/null +++ b/server/src/config.rs @@ -0,0 +1,24 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct ClientConfig { + pub webrtc: ClientWebrtcConfig, + pub appearance: ClientAppearanceConfig, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct ClientWebrtcConfig { + pub stun: String, + pub turn: Option<String>, + pub turn_user: Option<String>, + pub turn_cred: Option<String>, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct ClientAppearanceConfig { + pub accent: String, + pub accent_light: String, + pub accent_dark: String, + pub background: String, + pub background_dark: String, +} |