From 1c02b0d45a0abada9a3b4cd560a52d9905ee32bc Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 21 Aug 2025 10:44:30 +0200 Subject: [PATCH] derp: increase update frequency to 3h This commit changes the example config and default time for how often we refresh the DERP map. If not changed, this is typically Tailscales official map. Signed-off-by: Kristoffer Dalby --- config-example.yaml | 7 +++---- hscontrol/types/config.go | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config-example.yaml b/config-example.yaml index 8748b560..e476f9fd 100644 --- a/config-example.yaml +++ b/config-example.yaml @@ -128,7 +128,7 @@ derp: auto_update_enabled: true # How often should we check for DERP updates? - update_frequency: 24h + update_frequency: 3h # Disables the automatic check for headscale updates on startup disable_check_updates: false @@ -275,7 +275,7 @@ dns: # `hostname.base_domain` (e.g., _myhost.example.com_). base_domain: example.com - # Whether to use the local DNS settings of a node or override the local DNS + # Whether to use the local DNS settings of a node or override the local DNS # settings (default) and force the use of Headscale's DNS configuration. override_local_dns: true @@ -293,8 +293,7 @@ dns: # Split DNS (see https://tailscale.com/kb/1054/dns/), # a map of domains and which DNS server to use for each. - split: - {} + split: {} # foo.bar.com: # - 1.1.1.1 # darp.headscale.net: diff --git a/hscontrol/types/config.go b/hscontrol/types/config.go index be0bce81..f23b75e8 100644 --- a/hscontrol/types/config.go +++ b/hscontrol/types/config.go @@ -300,6 +300,7 @@ func LoadConfig(path string, isFile bool) error { viper.SetDefault("derp.server.verify_clients", true) viper.SetDefault("derp.server.stun.enabled", true) viper.SetDefault("derp.server.automatically_add_embedded_derp_region", true) + viper.SetDefault("derp.update_frequency", "3h") viper.SetDefault("unix_socket", "/var/run/headscale/headscale.sock") viper.SetDefault("unix_socket_permission", "0o770")