pub struct ProxyAddParams {
pub id: String,
pub name: String,
pub listen_port: u16,
pub target_host: String,
pub target_port: u16,
pub target_scheme: String,
pub tls: bool,
pub allow_non_loopback: bool,
pub allow: Vec<String>,
pub routes: Vec<ProxyRoute>,
}Expand description
Parameters for starting a reverse proxy via the network provider.
Fields§
§id: StringUnique identifier for this proxy.
name: StringHuman-readable name.
listen_port: u16Port on which the proxy listens on the tailnet.
target_host: StringTarget host to forward to (e.g., “localhost”).
target_port: u16Target port to forward to.
target_scheme: StringTarget scheme (“http” or “https”).
tls: boolTerminate TLS on the tailnet listener (RFC 023; true = the v1
always-TLS behavior, false = plain HTTP listener).
allow_non_loopback: boolPermit non-loopback targets (RFC 023 §9.3; default deny).
allow: Vec<String>loginName allow globs; empty = whole tailnet (RFC 023 §9.7).
routes: Vec<ProxyRoute>Path-prefix routes; empty = the single-target v1 shape.
Trait Implementations§
Source§impl Clone for ProxyAddParams
impl Clone for ProxyAddParams
Source§fn clone(&self) -> ProxyAddParams
fn clone(&self) -> ProxyAddParams
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 moreAuto Trait Implementations§
impl Freeze for ProxyAddParams
impl RefUnwindSafe for ProxyAddParams
impl Send for ProxyAddParams
impl Sync for ProxyAddParams
impl Unpin for ProxyAddParams
impl UnsafeUnpin for ProxyAddParams
impl UnwindSafe for ProxyAddParams
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