From 9e9b8295f001a80b5b4b53ea3323ff61a33813fa Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Fri, 7 Feb 2025 12:51:01 +0100 Subject: [PATCH] doc: Mention absolute path requirement Helps with #10213 --- cmd/tailscale/cli/serve_v2.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/tailscale/cli/serve_v2.go b/cmd/tailscale/cli/serve_v2.go index 3e173ce28..a976bb0cf 100644 --- a/cmd/tailscale/cli/serve_v2.go +++ b/cmd/tailscale/cli/serve_v2.go @@ -44,8 +44,12 @@ var serveHelpCommon = strings.TrimSpace(` 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). +Files and directories must be specified as absolute paths, relative paths are not supported. EXAMPLES + - Expose an HTML file by giving its absolute path: + $ tailscale %[1]s /tmp/test/index.html + - Expose an HTTP server running at 127.0.0.1:3000 in the foreground: $ tailscale %[1]s 3000