pub struct WebConfig {
pub port: u16,
pub owner_login: Option<String>,
pub assets: Option<PathBuf>,
pub voices_dir: 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.
voices_dir: Option<PathBuf>Where the TTS server’s voice references live — the host side of the
directory the Chatterbox container mounts read-only as /voices
(each <name>.wav is a cloning reference; the file is the voice).
Unset disables voice cloning from the settings page, which is the
honest default: nothing here can guess where a container’s mount
points, and writing WAVs into a wrong directory would litter it
silently.