pub struct ServerConfiguration {
pub log: 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.
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 !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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.