add page streaming, admin ui flows, and runtime hardening

This commit is contained in:
2026-03-05 15:26:47 +01:00
parent 6eaf2ba5dc
commit 20f9af6cba
14 changed files with 957 additions and 33 deletions

View File

@@ -50,13 +50,17 @@ impl IndexerConfig {
#[derive(Debug, Clone)]
pub struct AdminUiConfig {
pub listen_addr: String,
pub api_base_url: String,
pub api_token: String,
}
impl AdminUiConfig {
pub fn from_env() -> Self {
Self {
pub fn from_env() -> Result<Self> {
Ok(Self {
listen_addr: std::env::var("ADMIN_UI_LISTEN_ADDR")
.unwrap_or_else(|_| "0.0.0.0:8082".to_string()),
}
api_base_url: std::env::var("API_BASE_URL").unwrap_or_else(|_| "http://api:8080".to_string()),
api_token: std::env::var("API_BOOTSTRAP_TOKEN").context("API_BOOTSTRAP_TOKEN is required")?,
})
}
}