pub struct ServerSettings {
pub listen_address: String,
pub port: u16,
pub cert: Option<String>,
pub key: Option<String>,
pub console_inactivity_timeout_secs: u64,
pub auth_rate_limit_per_minute: Option<u32>,
}Expand description
Server-only settings — TLS, listen address, console behaviour. Lives
under [server] in server.toml.
Fields§
§listen_address: StringTCP listen address (e.g. “0.0.0.0”).
port: u16TCP port for the TLS server.
cert: Option<String>Path to the TLS certificate (PEM).
key: Option<String>Path to the TLS private key (PEM).
console_inactivity_timeout_secs: u64How long a node-console WebSocket stays open without activity before the server tears it down.
auth_rate_limit_per_minute: Option<u32>Per-source-IP rate limit for the /api/v1/auth/* endpoints,
in requests per minute. None disables in-process rate limiting
(operators are then expected to enforce it at the reverse proxy).
Trait Implementations§
Source§impl Debug for ServerSettings
impl Debug for ServerSettings
Source§impl<'de> Deserialize<'de> for ServerSettings
impl<'de> Deserialize<'de> for ServerSettings
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 ServerSettings
impl RefUnwindSafe for ServerSettings
impl Send for ServerSettings
impl Sync for ServerSettings
impl Unpin for ServerSettings
impl UnsafeUnpin for ServerSettings
impl UnwindSafe for ServerSettings
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