pub struct ServerConfig {
pub server: ServerSection,
pub storage: StorageBackendConfig,
pub auth: AuthConfig,
pub notifications: NotificationsConfig,
pub security: SecurityConfig,
pub extras: ExtrasConfig,
}Expand description
Fully resolved server configuration snapshot.
Construct via crate::config::loader::ConfigLoader; never mutate
after construction. Reload swaps in a new snapshot atomically.
Fields§
§server: ServerSectionHTTP listener settings (host, port, base URL).
storage: StorageBackendConfigStorage backend selection (filesystem, memory, or S3).
auth: AuthConfigAuthentication toggles (NIP-98, Solid-OIDC, DPoP).
notifications: NotificationsConfigSolid Notifications channel toggles (WebSocket, Webhook, legacy).
security: SecurityConfigSecurity primitives (SSRF guard, dotfile allowlist, ACL origin).
extras: ExtrasConfigSprint 11 (row 120-124): operator-facing extras that do not yet
have first-class sections on ServerConfig. The env-var overlay
writes here (e.g. JSS_CORS_ALLOWED_ORIGINS, JSS_SUBDOMAINS,
JSS_BASE_DOMAIN, JSS_IDP_ENABLED). Binaries consult this map
until a richer typed section supersedes it.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§fn default() -> ServerConfig
fn default() -> ServerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
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 ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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