pub struct ServeConfig {
pub http_addr: String,
pub require_auth: bool,
pub auth_token_vault_key: String,
pub max_sessions: usize,
pub session_idle_ttl_secs: u64,
pub max_queued_prompts: usize,
}Expand description
Top-level [serve] config block (spec-068 §9).
§Example (TOML)
[serve]
http_addr = "127.0.0.1:8420"
require_auth = true
auth_token_vault_key = "ZEPH_SERVE_AUTH_TOKEN"
max_sessions = 50
session_idle_ttl_secs = 1800
max_queued_prompts = 8Fields§
§http_addr: StringAddress the HTTP/SSE API binds to. Default: "127.0.0.1:8420".
require_auth: boolRequire a bearer token on all /sessions* endpoints (/health is always
unauthenticated). Default: true.
Per CLAUDE.md’s vault-only secrets policy, the token itself is never stored in this
config file — only the vault key name to resolve it from (auth_token_vault_key).
auth_token_vault_key: StringZeph age-vault key name to resolve the bearer token from at startup (spec-068 NFR-S4).
Default: "ZEPH_SERVE_AUTH_TOKEN".
max_sessions: usizeMaximum number of concurrent live sessions the LiveSessionRegistry will hold.
Default: 50.
session_idle_ttl_secs: u64Seconds of no attached broadcast receivers before serve.evict shuts down and removes a
session’s SessionActor (spec-068 §9.3). Default: 1800 (30 minutes).
max_queued_prompts: usizeBounded mpsc capacity for a SessionActor’s prompt mailbox; a full mailbox returns HTTP
429 to the caller rather than blocking (spec-068 §9.2). Default: 8.
Trait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Source§fn clone(&self) -> ServeConfig
fn clone(&self) -> ServeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more