Notes: do not use snap docker. It has mount permission issues.
- Setup Kubernetes: https://github.com/kahnwong/k8s-playground
- Install caddy via xcaddy + cloudflare plugin: https://docs.karnwong.me/knowledge-base/ops/tools/networking/caddy#caddy-with-cloudflare-plugin
- Install headscale: https://headscale.net/stable/setup/install/official/#using-packages-for-debianubuntu-recommended. Edit following config keys:
server_url, listen_addr, base_domain. Addsudo usermod -aG headscale $USERto allow invoking headscale without sudo.
Place this file at $HOME.
#!/bin/bash
cd self-hosted
./scripts/caddy_reload.sh