Skip to main content

Serving Web Server Using Tailscale

·1 min

It will be served inside the tailnet, as example I am using this blog.

For it, you will need to install hugo and tailscale.

To serve:

git clone git@github.com:joaothallis/joaothallis.github.io.git
cd joaothallis.github.io
hugo serve &
sudo tailscale serve tcp:1313 tcp://127.0.0.1:1313
# to get the URL
tailscale serve status | head -1 | grep -oP "(?<=tcp://)[^ ]+"

Now with the URL you can access it in any device inside the tailnet.

To stop serving:

sudo tailscale serve tcp:1313 tcp://127.0.0.1:1313 off
kill hugo