Caddy¶
I just installed the apt version first so I wouldn't have to fuss with systemd
Then I downloaded a caddy binary with cloudflare-dns module already installed and copied it to /tmp/caddy on beelink.
Replaced original caddy binary with the newly downloaded one:
sudo systemctl stop caddy
sudo mv /tmp/caddy /usr/bin/caddy
sudo chmod +x /usr/bin/caddy
sudo systemctl start caddy
Made sure the module was there:
I already had a cloudflare api token that could edit DNS. Added it to the caddy systemd environment
Then configured Caddyfile:
/etc/caddy/Caddyfile
mydomain.example.com {
reverse_proxy localhost:8080
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}
Restarted systemd service:
And pointed my Cloudflare DNS record at the Tailscale IP for the node running Caddy.