[control] Previews: POST/GET/DELETE /api/v1/previews, tokens scoped to previews only, the upstream allow list, expiry; Windows drive paths in compile options (tests first)

This commit is contained in:
2026-11-17 13:46:33 +01:00
parent 83270e0746
commit fc9e16f1b2
21 changed files with 1677 additions and 43 deletions
+2
View File
@@ -18,6 +18,7 @@ pub mod logger;
pub mod messages;
pub mod pki;
pub mod pki_ctl;
pub mod previews;
pub mod records;
pub mod repo;
pub mod shares;
@@ -42,6 +43,7 @@ pub async fn serve(
tokio::spawn(ctl.clone().health_poller());
tokio::spawn(ctl.clone().pusher());
tokio::spawn(ctl.clone().pki_poller());
tokio::spawn(ctl.clone().preview_sweeper());
let app = api::router(api::AppState::new(ctl.clone()));
if !listen.ip().is_loopback() {
return Err("ianitor-control only listens on loopback".into());