Headscale¶
Install the latest stable Headscale release, verify its published checksum, and configure SQLite and a systemd service. Uberspace handles public HTTPS; administration uses a private Unix socket over SSH.
Before you start¶
Use a fresh Asteroid with an empty document root and port 8080 available. The installer refuses to overwrite ~/.headscale, headscale.service, or another application's root backend. Configure DNS before using a custom domain.
This installs the control server, not a VPN client or a DERP relay. Clients communicate directly or use the external relays in Headscale's default DERP map.
Installation¶
Over SSH: Run the app installer, which uses the Headscale playbook. Example output is abbreviated:
[isabell@moondust ~]$ uberspace app install headscale
[...]
OK: playbook finished
| Option | Default | Purpose |
|---|---|---|
--var domain=headscale.example.com |
Your Asteroid domain | Public server address; configure DNS first |
--var port=8081 |
8080 |
Internal HTTP port |
Add --dry to run preflight checks without installing.
First login¶
There is no web administration login. Use ~/.headscale/headscale over SSH to create a user, then enroll your Tailscale clients using the Guide's device-registration instructions. Visit /health to check server availability.
Configuration¶
Files and service: Configuration, keys, and SQLite data live in ~/.headscale. The service is headscale.service. Run ~/.headscale/headscale configtest after editing config.yaml, then restart the service. See the systemd Manual.
Networking: HTTPS is handled by the web backend. Metrics are disabled, the admin socket has mode 0600, and gRPC listens only on loopback. The embedded DERP/STUN server remains disabled.
DNS and policy: MagicDNS uses tailnet. followed by your server domain, while clients retain their existing DNS resolvers. Review the Guide's configuration notes and upstream policy documentation before enrolling other users; the default policy allows peers to communicate.
Security: The playbook enables HSTS for your domain, so browsers always use HTTPS.
Updates and backups¶
Updates are manual. Follow the Guide, including the rule against skipping minor versions. Stop the service and back up the complete ~/.headscale directory before changing versions. Keep a private copy outside the Asteroid. Do not rerun this fresh-install playbook to update.
For maintenance responsibilities, see Your app, your freedom, your responsibility.
Troubleshooting¶
Installation logs are in ~/logs/app_playbooks/. Inspect failed installations before retrying; existing files are deliberately not overwritten.
Read the service log. Example output is abbreviated:
[isabell@moondust ~]$ journalctl --user -u headscale -n 50
[...]
... listening and serving HTTP on: 0.0.0.0:8080
For enrollment problems, check the public server_url, client compatibility, and the journal. A response at /health verifies HTTP availability; it does not by itself prove client enrollment or peer connectivity. See the Guide.