mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Use markdown numbering so github gets it
This commit is contained in:
parent
8da029bd14
commit
6b7c74133d
2 changed files with 16 additions and 16 deletions
|
@ -17,13 +17,13 @@ not work with alternatives like [Podman](https://podman.io).
|
|||
mkdir config
|
||||
```
|
||||
|
||||
1. Create an empty SQlite datebase:
|
||||
2. Create an empty SQlite datebase:
|
||||
|
||||
```shell
|
||||
touch config/db.sqlite
|
||||
```
|
||||
|
||||
1. Create a `headscale` configuration:
|
||||
3. Create a `headscale` configuration:
|
||||
|
||||
```shell
|
||||
touch config/config.yaml
|
||||
|
@ -31,7 +31,7 @@ touch config/config.yaml
|
|||
|
||||
It is strongly recommended to copy the [example configuration](../config.yaml) from the [headscale repository](../)
|
||||
|
||||
1. Start the headscale server:
|
||||
4. Start the headscale server:
|
||||
|
||||
```shell
|
||||
docker run \
|
||||
|
@ -48,7 +48,7 @@ docker run \
|
|||
This command will mount `config/` under `/etc/headscale`, forward port 8080 out of the container so the
|
||||
`headscale` instance becomes available and then detach so headscale runs in the background.
|
||||
|
||||
1. Verify `headscale` is running:
|
||||
5. Verify `headscale` is running:
|
||||
|
||||
Follow the container logs:
|
||||
|
||||
|
@ -68,7 +68,7 @@ Verify `headscale` is available:
|
|||
curl http://127.0.0.1:8080/metrics
|
||||
```
|
||||
|
||||
1. Create a namespace ([tailnet](https://tailscale.com/kb/1136/tailnet/)):
|
||||
6. Create a namespace ([tailnet](https://tailscale.com/kb/1136/tailnet/)):
|
||||
|
||||
```shell
|
||||
docker exec headscale -- headscale namespaces create myfirstnamespace
|
||||
|
|
|
@ -15,13 +15,13 @@ wget --output-document=/usr/local/bin/headscale \
|
|||
https://github.com/juanfont/headscale/releases/download/v<HEADSCALE VERSION>/headscale_<HEADSCALE VERSION>_linux_<ARCH>
|
||||
```
|
||||
|
||||
1. Make `headscale` executable:
|
||||
2. Make `headscale` executable:
|
||||
|
||||
```shell
|
||||
chmod +x /usr/local/bin/headscale
|
||||
```
|
||||
|
||||
1. Prepare a direction to hold `headscale` configuration and the [SQLite](https://www.sqlite.org/) database:
|
||||
3. Prepare a direction to hold `headscale` configuration and the [SQLite](https://www.sqlite.org/) database:
|
||||
|
||||
```shell
|
||||
# Directory for configuration
|
||||
|
@ -32,13 +32,13 @@ mkdir -p /etc/headscale
|
|||
mkdir -p /var/lib/headscale
|
||||
```
|
||||
|
||||
1. Create an empty SQlite datebase:
|
||||
4. Create an empty SQlite datebase:
|
||||
|
||||
```shell
|
||||
touch /var/lib/headscale/db.sqlite
|
||||
```
|
||||
|
||||
1. Create a `headscale` configuration:
|
||||
5. Create a `headscale` configuration:
|
||||
|
||||
```shell
|
||||
touch /etc/headscale/config.yaml
|
||||
|
@ -47,7 +47,7 @@ touch /etc/headscale/config.yaml
|
|||
It is strongly recommended to copy and modifiy the [example configuration](../config.yaml)
|
||||
from the [headscale repository](../)
|
||||
|
||||
1. Start the headscale server:
|
||||
6. Start the headscale server:
|
||||
|
||||
```shell
|
||||
headscale serve
|
||||
|
@ -60,7 +60,7 @@ Alternatively use terminal emulators like [tmux](https://github.com/tmux/tmux) o
|
|||
|
||||
To run `headscale` in the background, please follow the steps in the [SystemD section](#running-headscale-in-the-background-with-systemd) before continuing.
|
||||
|
||||
1. Verify `headscale` is running:
|
||||
7. Verify `headscale` is running:
|
||||
|
||||
Verify `headscale` is available:
|
||||
|
||||
|
@ -68,7 +68,7 @@ Verify `headscale` is available:
|
|||
curl http://127.0.0.1:8080/metrics
|
||||
```
|
||||
|
||||
1. Create a namespace ([tailnet](https://tailscale.com/kb/1136/tailnet/)):
|
||||
8. Create a namespace ([tailnet](https://tailscale.com/kb/1136/tailnet/)):
|
||||
|
||||
```shell
|
||||
headscale namespaces create myfirstnamespace
|
||||
|
@ -136,26 +136,26 @@ RuntimeDirectory=headscale
|
|||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
1. In `/etc/headscale/config.yaml`, override the default `headscale` unix socket with a SystemD friendly path:
|
||||
2. In `/etc/headscale/config.yaml`, override the default `headscale` unix socket with a SystemD friendly path:
|
||||
|
||||
```yaml
|
||||
unix_socket: /var/run/headscale/headscale.sock
|
||||
```
|
||||
|
||||
1. Reload SystemD to load the new configuration file:
|
||||
3. Reload SystemD to load the new configuration file:
|
||||
|
||||
```shell
|
||||
systemctl daemon-reload
|
||||
```
|
||||
|
||||
1. Enable and start the new `headscale` service:
|
||||
4. Enable and start the new `headscale` service:
|
||||
|
||||
```shell
|
||||
systemctl enable headscale
|
||||
systemctl start headscale
|
||||
```
|
||||
|
||||
1. Verify the headscale service:
|
||||
5. Verify the headscale service:
|
||||
|
||||
```shell
|
||||
systemctl status headscale
|
||||
|
|
Loading…
Reference in a new issue