pub struct WebConfig {
pub port: u16,
pub owner_login: Option<String>,
pub assets: Option<PathBuf>,
}Expand description
Tunables for mecha serve — the tailnet web surface.
Global-file only, enforced in merge_file: a project file arrives with a
cloned repository, and this section names a listening port and the one
identity allowed through the door.
Fields§
§port: u16Port bound on 127.0.0.1 — tailscale serve fronts it, and there is
deliberately no setting to bind wider (the dsh refusal, adopted).
owner_login: Option<String>The Tailscale login every request must carry in
Tailscale-User-Login, which tailscale serve injects. Unset means
mecha serve refuses to start: a door with no owner check must not
open at all.
assets: Option<PathBuf>Directory holding the built web app (web/dist). Unset serves the
API routes only, which is what tests and a headless box want.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WebConfig
impl<'de> Deserialize<'de> for WebConfig
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 WebConfig
impl RefUnwindSafe for WebConfig
impl Send for WebConfig
impl Sync for WebConfig
impl Unpin for WebConfig
impl UnsafeUnpin for WebConfig
impl UnwindSafe for WebConfig
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