1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-09-25 17:51:11 +02:00

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 <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2025-08-21 10:44:30 +02:00
parent 51c6367bb1
commit 1c02b0d45a
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ derp:
auto_update_enabled: true auto_update_enabled: true
# How often should we check for DERP updates? # How often should we check for DERP updates?
update_frequency: 24h update_frequency: 3h
# Disables the automatic check for headscale updates on startup # Disables the automatic check for headscale updates on startup
disable_check_updates: false disable_check_updates: false
@ -293,8 +293,7 @@ dns:
# Split DNS (see https://tailscale.com/kb/1054/dns/), # Split DNS (see https://tailscale.com/kb/1054/dns/),
# a map of domains and which DNS server to use for each. # a map of domains and which DNS server to use for each.
split: split: {}
{}
# foo.bar.com: # foo.bar.com:
# - 1.1.1.1 # - 1.1.1.1
# darp.headscale.net: # darp.headscale.net:

View File

@ -300,6 +300,7 @@ func LoadConfig(path string, isFile bool) error {
viper.SetDefault("derp.server.verify_clients", true) viper.SetDefault("derp.server.verify_clients", true)
viper.SetDefault("derp.server.stun.enabled", true) viper.SetDefault("derp.server.stun.enabled", true)
viper.SetDefault("derp.server.automatically_add_embedded_derp_region", 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", "/var/run/headscale/headscale.sock")
viper.SetDefault("unix_socket_permission", "0o770") viper.SetDefault("unix_socket_permission", "0o770")