pub struct WebSettings {
pub web_listen: String,
pub web_domain: String,
pub web_port: u16,
pub web_cert_file: String,
pub web_key_file: String,
pub web_base_path: String,
pub session_max_age: u32,
pub trusted_proxy_cidrs: String,
pub panel_outbound: String,
}Expand description
Panel listener, session, and outbound settings.
Fields§
§web_listen: StringListener IP, or an empty string for all interfaces.
web_domain: StringPublic panel domain.
web_port: u16Panel TCP port.
web_cert_file: StringTLS certificate path.
web_key_file: StringTLS private-key path.
web_base_path: StringSecret panel base path.
session_max_age: u32Session lifetime in minutes.
trusted_proxy_cidrs: StringComma-separated trusted reverse-proxy CIDRs.
panel_outbound: StringXray outbound tag used by panel-originated traffic.
Trait Implementations§
Source§impl Clone for WebSettings
impl Clone for WebSettings
Source§impl Debug for WebSettings
impl Debug for WebSettings
Source§impl Default for WebSettings
impl Default for WebSettings
Source§impl<'de> Deserialize<'de> for WebSettingswhere
WebSettings: Default,
impl<'de> Deserialize<'de> for WebSettingswhere
WebSettings: Default,
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
Source§impl PartialEq for WebSettings
impl PartialEq for WebSettings
Source§impl Serialize for WebSettings
impl Serialize for WebSettings
impl StructuralPartialEq for WebSettings
Auto Trait Implementations§
impl Freeze for WebSettings
impl RefUnwindSafe for WebSettings
impl Send for WebSettings
impl Sync for WebSettings
impl Unpin for WebSettings
impl UnsafeUnpin for WebSettings
impl UnwindSafe for WebSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 more