Documentation
¶
Overview ¶
muster-preview is the preview gateway: hosts running `muster-mirror -preview` open one tunnel to it each, and it will serve their local web servers to their owners (docs/design/previews.md, "The preview gateway"). The logic is internal/previewgw; this file is its command line.
muster-preview [serve] run the gateway (the container's command)
muster-preview host-token create [<owner>] <host>
mint a host token (printed once)
muster-preview host-token ls
muster-preview host-token revoke <id>
muster-preview version
The host-token subcommands write $STATE_DIR/host-tokens.json under a flock; a running gateway re-reads it on every tunnel and every 30 s, so a revoked token's tunnel ends within 30 s. Run them where the gateway's STATE_DIR is mounted (inside its container).