From c15aa541bb9e8d834a3e2d9c12d8edacae7d8502 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Wed, 14 May 2025 20:12:37 +0200 Subject: [PATCH] Document HEADSCALE_CONFIG --- docs/ref/configuration.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ref/configuration.md b/docs/ref/configuration.md index e11710db..18c8502f 100644 --- a/docs/ref/configuration.md +++ b/docs/ref/configuration.md @@ -5,7 +5,9 @@ - `/etc/headscale` - `$HOME/.headscale` - the current working directory -- Use the command line flag `-c`, `--config` to load the configuration from a different path +- To load the configuration from a different path, use: + - the command line flag `-c`, `--config` + - the environment variable `HEADSCALE_CONFIG` - Validate the configuration file with: `headscale configtest` !!! example "Get the [example configuration from the GitHub repository](https://github.com/juanfont/headscale/blob/main/config-example.yaml)"