pub struct ServerCommandConfig {Show 37 fields
pub path: Option<PathBuf>,
pub router_bind_addr: Option<String>,
pub router_bind_explicit: bool,
pub grpc_bind_addr: Option<String>,
pub grpc_bind_explicit: bool,
pub grpc_tls_bind_addr: Option<String>,
pub grpc_tls_cert: Option<PathBuf>,
pub grpc_tls_key: Option<PathBuf>,
pub grpc_tls_client_ca: Option<PathBuf>,
pub http_bind_addr: Option<String>,
pub http_bind_explicit: bool,
pub http_tls_bind_addr: Option<String>,
pub http_tls_cert: Option<PathBuf>,
pub http_tls_key: Option<PathBuf>,
pub http_tls_client_ca: Option<PathBuf>,
pub wire_bind_addr: Option<String>,
pub wire_bind_explicit: bool,
pub wire_tls_bind_addr: Option<String>,
pub wire_tls_cert: Option<PathBuf>,
pub wire_tls_key: Option<PathBuf>,
pub pg_bind_addr: Option<String>,
pub create_if_missing: bool,
pub bounded_disk_residency: bool,
pub read_only: bool,
pub role: String,
pub primary_addr: Option<String>,
pub storage_profile: StorageProfileSelection,
pub auth: bool,
pub require_auth: bool,
pub vault: bool,
pub no_auth: bool,
pub workers: Option<usize>,
pub telemetry: Option<TelemetryConfig>,
pub http_limits_cli: HttpLimitsCliInput,
pub ui: bool,
pub ui_dir: Option<PathBuf>,
pub bootstrap: BootstrapConfig,
}Fields§
§path: Option<PathBuf>§router_bind_addr: Option<String>§router_bind_explicit: bool§grpc_bind_addr: Option<String>§grpc_bind_explicit: bool§grpc_tls_bind_addr: Option<String>TLS-encrypted gRPC bind address. Can run side-by-side with
grpc_bind_addr (e.g. :55055 plain + :55555 TLS) or
stand alone for TLS-only deploys. Defaults to None.
grpc_tls_cert: Option<PathBuf>Path to PEM-encoded gRPC server certificate. Resolved through
REDDB_GRPC_TLS_CERT (with _FILE companion for k8s secret
mounts). When None and dev-mode is enabled
(RED_GRPC_TLS_DEV=1) the server auto-generates a self-signed
cert and prints its SHA-256 fingerprint to stderr.
grpc_tls_key: Option<PathBuf>Path to PEM-encoded gRPC server private key. Same env-var
pattern as grpc_tls_cert.
grpc_tls_client_ca: Option<PathBuf>Optional path to a PEM bundle of trust anchors used to verify client certificates. When set, the gRPC listener requires every client to present a cert that chains to this CA — i.e. mutual TLS. When unset, one-way TLS only.
http_bind_addr: Option<String>§http_bind_explicit: bool§http_tls_bind_addr: Option<String>HTTPS bind address. When set, the HTTP server also serves a TLS-terminated listener on this addr. Plain HTTP and HTTPS can run side by side (e.g. 5000 plain + 55555 TLS).
http_tls_cert: Option<PathBuf>PEM cert for HTTPS. Reads REDDB_HTTP_TLS_CERT / its _FILE
companion when not set explicitly.
http_tls_key: Option<PathBuf>PEM key for HTTPS. Reads REDDB_HTTP_TLS_KEY / its _FILE
companion when not set explicitly.
http_tls_client_ca: Option<PathBuf>Optional PEM CA bundle. When set, the HTTPS listener requires every client to present a cert that chains to a CA in this bundle (mTLS). When unset, plain server-side TLS only.
wire_bind_addr: Option<String>§wire_bind_explicit: bool§wire_tls_bind_addr: Option<String>TLS-encrypted wire protocol bind address
wire_tls_cert: Option<PathBuf>Path to TLS cert PEM (if None + wire_tls_bind, auto-generate)
wire_tls_key: Option<PathBuf>Path to TLS key PEM
pg_bind_addr: Option<String>PostgreSQL wire protocol bind address (Phase 3.1 PG parity). When set the server accepts psql / JDBC / DBeaver clients on this port via the v3 protocol. Defaults to None (disabled).
create_if_missing: bool§bounded_disk_residency: bool§read_only: bool§role: String§primary_addr: Option<String>§storage_profile: StorageProfileSelection§auth: boolExplicit auth enable switch from CLI/env. --no-auth remains
the final override and forces this off at option resolution time.
require_auth: boolRequire authenticated requests. Implies auth = true when set.
vault: bool§no_auth: boolIssue #663 — explicit --no-auth / --dev flag for local
no-password mode. When true, the boot pipeline force-disables
auth (auth.enabled = false, auth.require_auth = false,
auth.vault_enabled = false) and skips
AuthStore::bootstrap_from_env, so an explicit
REDDB_USERNAME + REDDB_PASSWORD pair cannot accidentally
turn anonymous access into a logged-in admin. An unmissable
warning is emitted at startup. Default false — the existing
implicit no-auth behaviour (just don’t set the envs) is
unchanged.
workers: Option<usize>Override worker thread count (None = auto-detect from CPUs)
telemetry: Option<TelemetryConfig>Telemetry config (Phase 6 logging). None falls back to the
built-in default derived from path + stderr-only.
http_limits_cli: HttpLimitsCliInputHTTP handler-pool knobs from the CLI layer (issue #574 slice 5).
Carries flag and env values; red.config and built-in defaults
are applied later by crate::server::http_limits::resolve_http_limits
once the runtime is open.
ui: boolred server --ui (issue #1047, ADR 0051). When true, the HTTP
listener also serves the pinned red-ui bundle as static assets.
The bundle directory is resolved at boot from the local cache
(downloading on first use, ADR 0050) unless ui_dir overrides it.
ui_dir: Option<PathBuf>Explicit bundle directory for --ui (--ui-dir <DIR>). When set,
it is served as-is with no download — the seam tests and an
air-gapped deploy use this. None resolves the pinned bundle.
bootstrap: BootstrapConfigFirst-boot bootstrap settings resolved from CLI flags and, when unset here, from environment variables by the bootstrap layer.
Implementations§
Source§impl ServerCommandConfig
impl ServerCommandConfig
pub fn enabled_transports(&self) -> Vec<ServerTransport>
Trait Implementations§
Source§impl Clone for ServerCommandConfig
impl Clone for ServerCommandConfig
Source§fn clone(&self) -> ServerCommandConfig
fn clone(&self) -> ServerCommandConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Forget for ServerCommandConfig
impl Freeze for ServerCommandConfig
impl Move for ServerCommandConfig
impl RefUnwindSafe for ServerCommandConfig
impl Send for ServerCommandConfig
impl Sync for ServerCommandConfigwhere
RawVecInner: Sync,
impl Unpin for ServerCommandConfig
impl UnsafeUnpin for ServerCommandConfig
impl UnwindSafe for ServerCommandConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request