Skip to content

Commit

Permalink
feat: add support to Headscale
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidapaulopt committed Nov 5, 2024
1 parent 104e2f9 commit e4df60e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/content/docs/advanced/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ next: /docs/advanced/dashboard
{{< cards >}}
{{< card link="dashboard" title="Dashboard" icon="view-boards" >}}
{{< card link="docker-secrets" title="Docker secrets" icon="key" >}}
{{< card link="headscale" title="Headscale" icon="server" >}}
{{< card link="host-mode" title="Service with Host Network Mode" icon="view-boards" >}}
{{< /cards >}}
1 change: 0 additions & 1 deletion docs/content/docs/advanced/dashboard.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: Dashboard
prev: /docs/advanced
# next: /docs/advanced/host-mode
---

{{< callout type="warning" >}}
Expand Down
24 changes: 24 additions & 0 deletions docs/content/docs/advanced/headscale.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Headscale
---

In case you want to use the Headscale service, please read the following:

{{% steps %}}

### In your TSDProxy docker-compose.yaml

Add the following to the `environment` section:

```yaml docker-compose.yml
environment:
- TSDPROXY_CONTROLURL="url of you headscale server"
```
### Restart TSDProxy
```bash
docker compose restart
```

{{% /steps %}}
1 change: 1 addition & 0 deletions internal/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type (
AuthKey string
AuthKeyFile string
Hostname string `default:"127.0.0.1"`
ControlURL string

Log LogConfig
HTTP HTTPConfig
Expand Down
1 change: 1 addition & 0 deletions internal/tailscale/tailscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func NewTsNetServer(hostname string, config *core.Config, logger *core.Logger, c
RunWebClient: ct.WebClient,
UserLogf: logger.Info().Msgf,
Logf: logger.Trace().Msgf,
ControlURL: config.ControlURL,
}

if ct.TsnetVerbose {
Expand Down

0 comments on commit e4df60e

Please sign in to comment.