mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-17 16:36:02 +00:00
cmd/dev: add local development server tool
Add a lightweight dev tool that starts a headscale server on localhost
with a pre-created user and pre-auth key, ready for connecting real
tailscale nodes via mts.
The tool builds the headscale binary, writes a minimal dev config
(SQLite, public DERP, debug logging), starts the server as a
subprocess, and prints a banner with the server URL, auth key, and
mts usage instructions.
Usage: go run ./cmd/dev
make dev-server
This commit is contained in:
parent
0cf27eba77
commit
461a0e2bea
3 changed files with 403 additions and 0 deletions
5
Makefile
5
Makefile
|
|
@ -105,6 +105,11 @@ clean:
|
|||
.PHONY: dev
|
||||
dev: fmt lint test build
|
||||
|
||||
# Start a local headscale dev server (use mts to add nodes)
|
||||
.PHONY: dev-server
|
||||
dev-server:
|
||||
go run ./cmd/dev
|
||||
|
||||
# Help target
|
||||
.PHONY: help
|
||||
help:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue