Skip to content

Instantly share code, notes, and snippets.

@kradalby
Created November 16, 2022 14:28
Show Gist options
  • Save kradalby/633a525338543b747a1053179a1cdc27 to your computer and use it in GitHub Desktop.
Save kradalby/633a525338543b747a1053179a1cdc27 to your computer and use it in GitHub Desktop.
Quick test server of headscale

Create a folder for test configuration and files:

mkdir headscale-testing
cd headscale-testing
wget -O config.yaml https://github.com/juanfont/headscale/raw/main/config-example.yaml
nix run github:juanfont/headscale#headscale -- serve

In a new window/tmux/session

nix run github:juanfont/headscale#headscale -- namespaces create test
nix run github:juanfont/headscale#headscale -- preauthkeys create --namespace test

Login with Tailscale

tailscale up --force-reauth --login-server=http://localhost:8080 --auth-key <KEY>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment