pub struct HostingConfig {
pub bootstrap_domains: Vec<String>,
pub unassigned_purge_grace: String,
pub disable_purge_grace: String,
}Expand description
Settings for the multi-domain hosting feature.
Per docs/multi-domain-spec.md §3: domains are runtime-managed,
but the daemon needs to know what to seed on a fresh deployment
(when no domains keyspace entries exist yet) and how long to
retain unassigned-domain data before purging.
Fields§
§bootstrap_domains: Vec<String>Domain names to seed into the domains keyspace on first boot
when the keyspace is empty. Used only when the operator hasn’t
already created domains via the admin API. The first entry
becomes the default domain (per spec §3 cold-start fallback
chain — tier 1).
Empty (default) falls through to tier 2: derive a single
default domain from the legacy public_url’s host.
unassigned_purge_grace: StringGrace period before a server-locally-unassigned domain’s data
is purged. Per spec §3 retain-then-purge semantics. Format:
duration string ("2h", "30m", "7d"). Default: "2h".
Parsed by the unassignment-purge sweep in T30; the string here is the canonical config-file representation.
disable_purge_grace: StringGrace period before a disabled domain (and every DID hosted
under it) is permanently removed. Disable is a soft-delete:
the operator gets this window to re-enable and cancel the
removal. Format matches unassigned_purge_grace. Default:
"30d" — long enough to recover from an accidental disable,
short enough that abandoned domains don’t accumulate forever.
Trait Implementations§
Source§impl Clone for HostingConfig
impl Clone for HostingConfig
Source§fn clone(&self) -> HostingConfig
fn clone(&self) -> HostingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more