Skip to main content

ServeConfig

Struct ServeConfig 

Source
pub struct ServeConfig {
Show 18 fields pub addr: Option<SocketAddr>, pub data_dir: Option<PathBuf>, pub auth_root_private_key: Option<String>, pub auth_root_public_key: Option<String>, pub bootstrap_secret: Option<String>, pub signer: Option<AuthSignerConfig>, pub max_upload_bytes: Option<u64>, pub upload_idle_timeout_secs: Option<u64>, pub max_concurrent_uploads: Option<usize>, pub http_redirect_addr: Option<SocketAddr>, pub default_site: Option<String>, pub pop_origin: Option<String>, pub protect_previews: bool, pub cluster_rate_limit: bool, pub shared_cache_coherence: bool, pub blob_notify_tier: Option<ProvisionTier>, pub blob_notify_account_id: Option<String>, pub console: Option<ConsoleConfig>,
}
Expand description

serve section — server defaults, overridden by flags/env.

Fields§

§addr: Option<SocketAddr>

Bind address (e.g. 0.0.0.0:8080).

§data_dir: Option<PathBuf>

Data directory for filesystem backends.

§auth_root_private_key: Option<String>

Token root private key (hex) — issuing node: verifies and mints tokens / OIDC exchanges.

§auth_root_public_key: Option<String>

Token root public key (hex) — verify-only node.

§bootstrap_secret: Option<String>

Single-use bootstrap secret enabling POST /api/tokens/bootstrap (mint the first token without an admin bearer). Prefer the BOATRAMP_BOOTSTRAP_SECRET env / --bootstrap-secret flag so it isn’t persisted in the config file.

§signer: Option<AuthSignerConfig>

External token signer ([serve.signer]): mint with a KMS/HSM/Vault-held root key instead of an in-process auth_root_private_key. Absent ⇒ the in-process key. When set, its public half is the trust anchor.

§max_upload_bytes: Option<u64>

Reject blob uploads larger than this many bytes.

§upload_idle_timeout_secs: Option<u64>

Abort an upload that stalls for longer than this many seconds.

§max_concurrent_uploads: Option<usize>

Cap on simultaneous blob uploads.

§http_redirect_addr: Option<SocketAddr>

In a TLS mode, bind this plain-HTTP address on a second listener that redirects to HTTPS (dual-listener). Only read in tls builds.

§default_site: Option<String>

Site to serve for a Host matching no domain, instead of 404.

§pop_origin: Option<String>

The fleet’s canonical public origin (e.g. https://cp.example.com) that a per-request proof-of-possession must bind to (aud). Required for holder-bound (cnf/PoP) tokens to be usable — a proof’s origin is compared against this value, never against a Host/X-Forwarded-* header.

§protect_previews: bool

Require a valid control-plane token to view deployment previews.

§cluster_rate_limit: bool

Rate-limit cluster-wide via the control-plane KV instead of per node.

§shared_cache_coherence: bool

Keep the config cache coherent across processes sharing one KV via the changelog.

§blob_notify_tier: Option<ProvisionTier>

Cloud blob-change notification provisioning tier (FA-5b2): how boatramp obtains the native event pipeline (S3→SQS) that backs a blob trigger — dry-run (print the recipe), provision (create + retract), verify-only (operator pre-wired), or refuse (fail closed). Absent ⇒ no provisioning: blob triggers then work only on a self-watching backend (fs). Only wired for the S3 backend (--features s3).

§blob_notify_account_id: Option<String>

The AWS account id used to scope the provisioned SQS queue’s SendMessage policy (aws:SourceAccount). Required when blob_notify_tier provisions.

§console: Option<ConsoleConfig>

[serve.console] — the embedded web management console. Absent (or enabled: false) ⇒ not served. This is the baseline for the dynamic console.* daemon-config override, which can enable/move it at runtime (boatramp config set console.enabled true) without a restart.

Trait Implementations§

Source§

impl Clone for ServeConfig

Source§

fn clone(&self) -> ServeConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ServeConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ServeConfig

Source§

fn default() -> ServeConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ServeConfig

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more