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")