Skip to content

Instantly share code, notes, and snippets.

@by-nari
Created December 16, 2024 10:37
Show Gist options
  • Save by-nari/193b5e53b202c81c4c7db50617401299 to your computer and use it in GitHub Desktop.
Save by-nari/193b5e53b202c81c4c7db50617401299 to your computer and use it in GitHub Desktop.

Tailscale Serve with other target rather than localhost

  1. Get the full current config of serve:

    sudo tailscale serve status -json > serve.json
  2. Edit the JSON file to meet your needs.

  3. Set the modified configuration back using the set-raw option:

    cat serve.json | sudo tailscale serve set-raw
    

Note: The set-raw option is undocumented and may not be guaranteed to stay in future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment