tsdav

TL;DR

Links

Why

Need to grab files from a remote machine but don't want to mess with SSH, VPNs, or expose services publicly? tsdav gives you secure WebDAV access through Tailscale's encrypted mesh network in seconds.

Highlights

How it works

  1. Spins up a WebDAV server serving your chosen directory
  2. Registers as an ephemeral Tailscale node (auto-cleanup on exit)
  3. Accessible via http://tsdav:8080 from any device on your tailnet
  4. Standard WebDAV protocol - mount as network drive or use any client

Installation

go build -o tsdav main.go

Usage

Quick start

# Serve current directory
./tsdav

# Serve specific path
./tsdav --dir /home/user/documents

With authentication

export WEBDAV_USER=myuser
export WEBDAV_PASS=mypass
./tsdav --dir /path/to/files --authenticate

Client examples

# macOS Finder: Cmd+K → http://tsdav:8080
# Windows: Map network drive to \\tsdav@8080\DavWWWRoot
# Command line
curl -u user:pass http://tsdav:8080/somefile.txt

Security

Tech

What I learned

Environment Variables

Posted: 2025-08-07

Home