summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 15:30:04 +0200
committertv <tv@krebsco.de>2026-10-24 15:30:04 +0200
commitfeb349ee09aa2151c421840bec521719c6149dcb (patch)
treecd4a2709dfd3ee1fde3827be6c4daadff1f9faa8 /src/state.rs
parente5d590f4e927a18fbed334a3d90650015ed75106 (diff)
add API and CLI to print effective config
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index a47211f..df053a6 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -597,6 +597,9 @@ pub(crate) struct AppState {
pub(crate) alias: Option<String>,
/// Members alive within this window vote on remakes (`--electorate-window-days`).
pub(crate) electorate_window: Duration,
+ /// The effective configuration with sources, imported values left out
+ /// (`config::Loaded::report`), for `GET /admin/config`.
+ pub(crate) config: Arc<serde_json::Value>,
/// Our own connectivity record and stability tier (`swarm::stability`).
pub(crate) stability: Arc<std::sync::Mutex<crate::swarm::stability::Stability>>,
/// Round-trip times to peers (`swarm::rtt`).