-
Get the full current config of serve:
sudo tailscale serve status -json > serve.json
-
Edit the JSON file to meet your needs.
-
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.