Added federation
Build and Publish / Build and Publish Docker Image (push) Successful in 4m55s

This commit is contained in:
Ultradesu
2026-07-17 13:30:55 +03:00
parent 184371afca
commit 0615356785
11 changed files with 3832 additions and 489 deletions
+8
View File
@@ -12,6 +12,7 @@ mod music;
mod oidc;
mod player;
mod scheduler;
mod federation;
mod torrents;
mod user;
@@ -559,6 +560,13 @@ impl Project for FuruProject {
.await;
});
// Join the federation at boot when it was left enabled (the settings
// live in the config KV table; changes apply live from the admin).
let fed_config = Arc::clone(&self.app_config);
tokio::spawn(async move {
federation::handle().boot(&fed_config).await;
});
apps.register(cot::session::db::SessionApp::new());
apps.register_with_views(
FuruApp {