at e995641,
$ tailscale funnel
USAGE
funnel <target>
funnel status [--json]
funnel reset
Funnel enables you to share a local server on the internet using Tailscale.
To share only within your tailnet, use `tailscale serve`
<target> can be a file, directory, text, or most commonly the location to a service running on the
local machine. The location to the location service can be expressed as a port number (e.g., 3000),
a partial URL (e.g., localhost:3000), or a full URL including a path (e.g., http://localhost:3000/foo).
EXAMPLES
- Expose an HTTP server running at 127.0.0.1:3000 in the foreground:
$ tailscale funnel 3000
- Expose an HTTP server running at 127.0.0.1:3000 in the background:
$ tailscale funnel --bg 3000
- Expose an HTTPS server with a valid certificate at https://localhost:8443
$ tailscale %!s(MISSING) https://localhost:8443
^^^^ %!s(MISSING) here
- Expose an HTTPS server with invalid or self-signed certificates at https://localhost:8443
$ tailscale %!s(MISSING) https+insecure://localhost:8443
... and here ^^^
For more examples and use cases visit our docs site https://tailscale.com/kb/1247/funnel-serve-use-cases
SUBCOMMANDS
status view current proxy configuration
reset reset current serve/funnel config
FLAGS
--bg, --bg=false
Run the command as a background process (default false)
--http string
Expose an HTTP server at the specified port
Why's this of type string if it's just a port?
--https string
Expose an HTTPS server at the specified port (default
^^^ missing closing paren
--set-path string
Appends the specified path to the base URL for accessing the underlying service
--tcp string
Expose a TCP forwarder to forward raw TCP packets at the specified port
--tls-terminated-tcp string
Expose a TCP forwarder to forward TLS-terminated TCP packets at the specified port
Similarily, why strings if these only take ports?
at e995641,
^^^^
%!s(MISSING)here... and here ^^^
Why's this of type string if it's just a port?
^^^ missing closing paren
Similarily, why strings if these only take ports?