pub struct ExtrasConfig {
pub conneg_enabled: Option<bool>,
pub cors_allowed_origins: Vec<String>,
pub max_body_size_bytes: Option<u64>,
pub max_acl_bytes: Option<u64>,
pub rate_limit_writes_per_min: Option<u64>,
pub subdomains_enabled: Option<bool>,
pub base_domain: Option<String>,
pub idp_enabled: Option<bool>,
pub invite_only: Option<bool>,
pub admin_key: Option<String>,
}Expand description
Flat bag for operator-facing knobs not yet promoted to a typed
section. Each field is #[serde(default)] + skip_serializing_if so
a pristine ExtrasConfig serialises to an empty object.
Fields§
§conneg_enabled: Option<bool>JSS_CONNEG — content-negotiation toggle. Default off until
promoted to its own typed section.
cors_allowed_origins: Vec<String>JSS_CORS_ALLOWED_ORIGINS — CSV list. Empty vec means unset.
max_body_size_bytes: Option<u64>JSS_MAX_BODY_SIZE / JSS_MAX_REQUEST_BODY — bytes.
max_acl_bytes: Option<u64>JSS_MAX_ACL_BYTES — bytes.
rate_limit_writes_per_min: Option<u64>JSS_RATE_LIMIT_WRITES_PER_MIN.
subdomains_enabled: Option<bool>JSS_SUBDOMAINS — enable subdomain multi-tenancy.
base_domain: Option<String>JSS_BASE_DOMAIN — authoritative base domain when subdomains
are on.
idp_enabled: Option<bool>JSS_IDP_ENABLED — local IdP service toggle.
invite_only: Option<bool>JSS_INVITE_ONLY — restrict new pod registration.
admin_key: Option<String>JSS_ADMIN_KEY — operator override token. Never serialise to
telemetry; this serde pass is solely for config reload symmetry.
Trait Implementations§
Source§impl Clone for ExtrasConfig
impl Clone for ExtrasConfig
Source§fn clone(&self) -> ExtrasConfig
fn clone(&self) -> ExtrasConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more