Add config option for creating admin room non-federated (closes #118)

This commit is contained in:
dasha_uwu committed 2025-08-28 23:28:20 +05:00
1 parent d4421422b2
commit 3a1649bcaf
3 files changed
+13 -1

No files matched your search

+7
View File
@@ -1713,6 +1713,13 @@ pub struct Config {
#[serde(default = "true_fn")]
pub create_admin_room: bool,
/// Whether to enable federation on the admin room. This cannot be changed
/// after the admin room is created.
///
/// default: true
#[serde(default = "true_fn")]
pub federate_admin_room: bool,
/// Sentry.io crash/panic reporting, performance monitoring/metrics, etc.
/// This is NOT enabled by default. tuwunel's default Sentry reporting
/// endpoint domain is `o4509498990067712.ingest.us.sentry.io`.
+1 -1
View File
@@ -71,7 +71,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
.timeline
.build_and_append_pdu(
PduBuilder::state(String::new(), &RoomCreateEventContent {
federate: true,
federate: services.config.federate_admin_room,
predecessor: None,
room_version: room_version.clone(),
..create_content
+5
View File
@@ -1476,6 +1476,11 @@
#
#create_admin_room = true
# Whether to enable federation on the admin room. This cannot be changed
# after the admin room is created.
#
#federate_admin_room = true
# Sentry.io crash/panic reporting, performance monitoring/metrics, etc.
# This is NOT enabled by default. tuwunel's default Sentry reporting
# endpoint domain is `o4509498990067712.ingest.us.sentry.io`.