add .gitignore, fix headscale CLI to use numeric user IDs
- Add .gitignore for nix build result symlinks - Fix all headscale CLI commands: --user now requires numeric ID, not username (changed in newer headscale versions) - Add 'headscale users list' step to docs where preauth keys are created
This commit is contained in:
parent
4c560abffd
commit
dbf98e2f22
6 changed files with 36 additions and 19 deletions
|
|
@ -25,9 +25,10 @@ nix-shell -p openssl --run 'openssl rand -hex 16'
|
|||
```bash
|
||||
# First, create a dedicated user
|
||||
sudo headscale users create headplane-agent
|
||||
|
||||
# Then create a reusable pre-auth key
|
||||
sudo headscale preauthkeys create --expiration 99y --reusable --user headplane-agent
|
||||
# Find the user ID
|
||||
sudo headscale users list
|
||||
# Then create a reusable pre-auth key (use the ID of headplane-agent)
|
||||
sudo headscale preauthkeys create --expiration 99y --reusable --user <ID>
|
||||
```
|
||||
|
||||
### Add to Secrets
|
||||
|
|
@ -101,7 +102,7 @@ sudo journalctl -u headplane -f
|
|||
Verify the agent pre-auth key is valid:
|
||||
|
||||
```bash
|
||||
sudo headscale preauthkeys list --user headplane-agent
|
||||
sudo headscale preauthkeys list --user <ID>
|
||||
```
|
||||
|
||||
If expired, create a new one and update the secrets file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue