1.2 KiB
1.2 KiB
Local/test headscale on arm64 macOS
- Binary from GitHub releases (manual download is the reliable path):
curl -sL https://github.com/juanfont/headscale/releases/download/v0.29.7/headscale_0.29.7_darwin_arm64 -o /tmp/headscale && chmod +x /tmp/headscale && /tmp/headscale version - Config —
noise.private_key_pathand the IP prefix are required or config load fails:
listen_addr: 0.0.0.0:8080
server_url: http://127.0.0.1:8080
backend: {type: sqlite, sqlite: {path: /tmp/headscale.db}}
noise: {private_key_path: /tmp/noise_key.pem}
dns: {nameservers: {global: [8.8.8.8]}, override_local_dns: false}
auth: {method: file, file: {prefix: 100.64.0.0/10}}
/tmp/headscale generate private-key -o /tmp/noise_key.pem, then runserve -c <cfg>in the foreground first to see errors (or setHEADSCALE_CONFIG).- The CLI talks to the unix socket; if the config's socket path differs from the CLI default
(
/var/run/headscale/headscale.sock), pass-c <cfg>so both agree — otherwise CLI calls time out. - Users/nodes:
users list --output json,nodes register --user <user> --key <key>,nodes list --output json.
See also references/headscale-config.md and scripts/headscale-probe.sh.