add event_bus_typed

This commit is contained in:
2026-09-23 21:11:35 +02:00
parent b830abe3f4
commit 5bac3174df
8 changed files with 241 additions and 4 deletions
+15
View File
@@ -51,6 +51,12 @@ tcp_port = 8080
# WebRTC ICE/Media UDP multiplexing port
udp_port = 8080
# Optional native HTTPS (omit this section to keep plain HTTP behind a proxy).
# [network.tls]
# cert_path = "certs/server.pem"
# key_path = "certs/server-key.pem"
# names = ["localhost", "127.0.0.1"]
[database]
# DSN for database
# SQLite
@@ -103,6 +109,15 @@ pub struct NetworkConfig {
pub hostv6: Option<Ipv6Addr>,
pub tcp_port: u16,
pub udp_port: u16,
#[serde(default)]
pub tls: Option<TlsConfig>,
}
#[derive(Debug, Clone, Deserialize)]
pub struct TlsConfig {
pub cert_path: std::path::PathBuf,
pub key_path: std::path::PathBuf,
pub names: Vec<String>,
}
#[derive(Clone, Deserialize)]