mirror of
https://github.com/juanfont/headscale.git
synced 2026-01-23 02:24:10 +00:00
Remove duplicated documentation and link to getting started instead
Some checks failed
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
NixOS Module Tests / nix-module-check (push) Has been cancelled
Tests / test (push) Has been cancelled
Some checks failed
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
NixOS Module Tests / nix-module-check (push) Has been cancelled
Tests / test (push) Has been cancelled
This commit is contained in:
parent
e86d063056
commit
72d5fd04a7
2 changed files with 5 additions and 36 deletions
|
|
@ -94,42 +94,7 @@ Registry](https://github.com/juanfont/headscale/pkgs/container/headscale). The c
|
||||||
curl http://127.0.0.1:8080/health
|
curl http://127.0.0.1:8080/health
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create a headscale user:
|
Continue on the [getting started page](../../usage/getting-started.md) to register your first machine.
|
||||||
|
|
||||||
```shell
|
|
||||||
docker exec -it headscale \
|
|
||||||
headscale users create myfirstuser
|
|
||||||
```
|
|
||||||
|
|
||||||
### Register a machine (normal login)
|
|
||||||
|
|
||||||
On a client machine, execute the `tailscale up` command to login:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
tailscale up --login-server YOUR_HEADSCALE_URL
|
|
||||||
```
|
|
||||||
|
|
||||||
To register a machine when running headscale in a container, take the headscale command and pass it to the container:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker exec -it headscale \
|
|
||||||
headscale nodes register --user myfirstuser --key <YOUR_MACHINE_KEY>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Register a machine using a pre authenticated key
|
|
||||||
|
|
||||||
Generate a key using the command line for the user with ID 1:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker exec -it headscale \
|
|
||||||
headscale preauthkeys create --user 1 --reusable --expiration 24h
|
|
||||||
```
|
|
||||||
|
|
||||||
This will return a pre-authenticated key that can be used to connect a node to headscale with the `tailscale up` command:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
tailscale up --login-server <YOUR_HEADSCALE_URL> --authkey <YOUR_AUTH_KEY>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Debugging headscale running in Docker
|
## Debugging headscale running in Docker
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ distributions are Ubuntu 22.04 or newer, Debian 12 or newer.
|
||||||
sudo systemctl status headscale
|
sudo systemctl status headscale
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Continue on the [getting started page](../../usage/getting-started.md) to register your first machine.
|
||||||
|
|
||||||
## Using standalone binaries (advanced)
|
## Using standalone binaries (advanced)
|
||||||
|
|
||||||
!!! warning "Advanced"
|
!!! warning "Advanced"
|
||||||
|
|
@ -115,3 +117,5 @@ managed by systemd.
|
||||||
```shell
|
```shell
|
||||||
systemctl status headscale
|
systemctl status headscale
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Continue on the [getting started page](../../usage/getting-started.md) to register your first machine.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue