pub struct ServerConfiguration {
pub log: String,
pub audit_file: String,
pub server: ServerSettings,
pub sites: HashMap<String, Site>,
pub auditor: Option<Auditor>,
}Expand description
Top-level configuration for the manta-server binary. Persisted as
TOML under ~/.config/manta/server.toml. Has no notion of an “active”
site — the server hosts every configured site simultaneously and
clients select per-request via the X-Manta-Site header.
Fields§
§log: StringEnvFilter directive for the tracing subscriber.
audit_file: StringPath to the local file the server appends audit lines to.
server: ServerSettingsNetwork / TLS / console / rate-limit knobs for the HTTPS server.
sites: HashMap<String, Site>Per-site backend connection details, keyed by site name. The
X-Manta-Site header on each request picks which one to route to.
auditor: Option<Auditor>Optional Kafka audit forwarder (typically used for /auth/*
attempts). When None, the server emits no audit messages.
Trait Implementations§
Source§impl Debug for ServerConfiguration
impl Debug for ServerConfiguration
Source§impl<'de> Deserialize<'de> for ServerConfiguration
impl<'de> Deserialize<'de> for ServerConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for ServerConfiguration
impl !RefUnwindSafe for ServerConfiguration
impl Send for ServerConfiguration
impl Sync for ServerConfiguration
impl Unpin for ServerConfiguration
impl UnsafeUnpin for ServerConfiguration
impl !UnwindSafe for ServerConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more