add page streaming, admin ui flows, and runtime hardening
This commit is contained in:
@@ -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")?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user