Configuration¶
- Headscale loads its configuration from a YAML file
- It searches for
config.yaml
in the following paths: /etc/headscale
$HOME/.headscale
- the current working directory
- Use the command line flag
-c
,--config
to load the configuration from a different path - Validate the configuration file with:
headscale configtest
Get the example configuration from the GitHub repository
Always select the same GitHub tag as the released version you use to ensure you have the correct example configuration. The main
branch might contain unreleased changes.
- Development version: https://github.com/juanfont/headscale/blob/main/config-example.yaml
- Version 0.23.0: https://github.com/juanfont/headscale/blob/v0.23.0/config-example.yaml