pub struct ServerSection {
pub bind: String,
pub public_url: Option<String>,
}Fields§
§bind: String§public_url: Option<String>Externally-reachable base URL of the SPA (e.g.
https://kanade.example.com), used to build absolute links in
emails (password setup / reset). Optional: when unset the backend
derives the base from each request’s Host header (+
X-Forwarded-Proto), which is correct for a direct LAN deploy.
Set this when behind a reverse proxy / TLS terminator, or to harden
the public forgot-password path against Host-header poisoning
(bind can’t be used — it’s a wildcard like 0.0.0.0:8080 and
carries no scheme/hostname).
Trait Implementations§
Source§impl Clone for ServerSection
impl Clone for ServerSection
Source§fn clone(&self) -> ServerSection
fn clone(&self) -> ServerSection
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 ServerSection
impl Debug for ServerSection
Source§impl<'de> Deserialize<'de> for ServerSection
impl<'de> Deserialize<'de> for ServerSection
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 ServerSection
impl RefUnwindSafe for ServerSection
impl Send for ServerSection
impl Sync for ServerSection
impl Unpin for ServerSection
impl UnsafeUnpin for ServerSection
impl UnwindSafe for ServerSection
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