Tailscale + Caddy + Cloudflare DNS

Pre-Thanks

All credit to Kale Worsley

What is tailscale?

roll your own vpn - very easy to use!

  • Allows any number of "devices" to appear as if they're on the same network
  • Gives you a private static ip address (we'll use this later)
  • Very painless to setup, and, reasonable free tier
  • https://tailscale.com/

What is caddy?

What does caddy do for me?

  • Very simple setup (go binary)
  • Reasonably simple config
  • _Automatic SSL provisioning_ via letsencrypt

Cloudflare (DNS)

What does cloudflare do here?

  • Ask Daniel Fone all the things Cloudflare can do
  • We're just going to use it for DNS here
  • Specifically, wildcard DNS + updating DNS via API for letsencrypt

Add our tailscale private ip address

Create an API token to edit DNS records

Configure Caddy (with Cloudflare plugin)

Sample Caddyfile

DEMO

 

 

gods please be kind

Tailscale + Caddy + Cloudflare

By Patrick Davey

Tailscale + Caddy + Cloudflare

  • 88