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
+2 -1
View File
@@ -114,7 +114,8 @@ derp:
urls:
- https://controlplane.tailscale.com/derpmap/default
# Locally available DERP map files encoded in YAML
# Locally available DERP map files. The extension picks the format: .yaml/.yml,
# or Tailscale JSON as .json or .hujson.
#
# This option is mostly interesting for people hosting their own DERP servers:
# https://tailscale.com/docs/reference/derp-servers/custom-derp-servers