derp: pick the derp.paths format by file extension

Adds JSON and HuJSON maps. JSON read as YAML decoded to an empty map; unknown
extensions and empty maps now fail at startup.
This commit is contained in:
Kristoffer Dalby
2026-09-28 13:32:46 +00:00
committed by Kristoffer Dalby
parent d20a412079
commit dd8ce695cf
6 changed files with 101 additions and 12 deletions
+3 -2
View File
@@ -54,8 +54,9 @@ derp:
### Customize DERP map
The DERP map offered to clients can be customized with a [dedicated YAML-configuration
file](https://github.com/juanfont/headscale/blob/main/derp-example.yaml). This allows to modify previously loaded DERP
maps fetched via URL or to offer your own, custom DERP servers to nodes.
file](https://github.com/juanfont/headscale/blob/main/derp-example.yaml). The file extension picks the format: `.yaml`
or `.yml`, or the JSON format Tailscale serves DERP maps in as `.json` or `.hujson`. This allows to modify previously
loaded DERP maps fetched via URL or to offer your own, custom DERP servers to nodes.
=== "Remove specific DERP regions"