pub struct Config {Show 21 fields
pub listen: SocketAddr,
pub tls_cert: PathBuf,
pub tls_key: PathBuf,
pub data_dir: PathBuf,
pub master_key: PathBuf,
pub retention_default: Retention,
pub purge_interval: Duration,
pub rotation_warn: Duration,
pub body_limit: usize,
pub inflated_limit: u64,
pub read_timeout: Duration,
pub connection: ConnectionLimits,
pub supported_critical: BTreeSet<String>,
pub mcp: Limits,
pub reports: ReportLimits,
pub storage: Storage,
pub export: Export,
pub catalog: CatalogStore,
pub operator: Option<Operator>,
pub public_origin: Option<Origin>,
pub keys_no_expiry: bool,
}Expand description
The configuration serve runs with. Durations are written in whole
seconds and sizes in bytes; each must be more than zero, and each has a
default.
Fields§
§listen: SocketAddrThe address and port serve listens on (listen).
tls_cert: PathBufThe file holding the server’s PEM certificate chain (tls.cert).
tls_key: PathBufThe file holding the server’s PEM private key (tls.key).
data_dir: PathBufThe data directory (data_dir).
master_key: PathBufThe file holding the 32-byte master key (master_key).
retention_default: RetentionFor tenants that set none; 7 years unless configured.
purge_interval: DurationTime between purge sweeps; PURGE_INTERVAL unless configured.
rotation_warn: DurationAge of the oldest work waiting for key rotation before serve
warns; ROTATION_WARN unless configured.
body_limit: usizeThe largest request body.
inflated_limit: u64The largest size gzip inflation may reach while a body is inspected.
read_timeout: DurationHow long a request body may take to arrive.
connection: ConnectionLimitsHow long a connection may take over its handshake and its request
heads and how long it may wait between requests
(limits.timeouts.handshake, first_head, head and idle), and
how many a listener holds at once (limits.connections).
supported_critical: BTreeSet<String>Extension names accepted in critical and must_support.
mcp: LimitsThe MCP server’s limits.
reports: ReportLimitsHow many reports of a content-security-policy violation a listener
takes in a minute, from every address and from one
(limits.csp_reports and limits.csp_reports_per_address).
storage: StorageWhere the data is kept.
export: ExportHow export parquet reaches a bucket: the [export] table.
catalog: CatalogStoreWhere the catalogs and the registry are kept: the [catalog] table.
operator: Option<Operator>The operator listener: the [operator] table. Without it, the one
listener serves operator keys too.
public_origin: Option<Origin>The origin a browser reaches listen at (public_origin), which a
request by session must come from. Without it, listen serves no
session.
keys_no_expiry: boolWhether a key may be made with no expiry (keys.no_expiry); true
unless configured. Keys made earlier are not changed.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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> ⓘ
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 more