feat: add support for headscale 0.29+

This commit is contained in:
Aarnav Tale
2026-06-20 18:03:14 -04:00
parent 846c030bc1
commit e29221e5f7
7 changed files with 21 additions and 7 deletions
-1
View File
@@ -332,7 +332,6 @@ function augmentUnstrictConfig(loaded: Partial<typeof headscaleConfig.infer>) {
tls_letsencrypt_challenge_type: loaded.tls_letsencrypt_challenge_type ?? "HTTP-01",
grpc_listen_addr: loaded.grpc_listen_addr ?? ":50443",
grpc_allow_insecure: loaded.grpc_allow_insecure ?? false,
randomize_client_port: loaded.randomize_client_port ?? false,
unix_socket: loaded.unix_socket ?? "/var/run/headscale/headscale.sock",
unix_socket_permission: loaded.unix_socket_permission ?? "0770",
+17 -2
View File
@@ -79,7 +79,19 @@ export const headscaleConfig = type({
},
disable_check_updates: goBool.default(false),
ephemeral_node_inactivity_timeout: goDuration.default("30m"),
"ephemeral_node_inactivity_timeout?": goDuration,
"node?": {
expiry: goDuration.default("0"),
"ephemeral?": {
inactivity_timeout: goDuration.default("30m"),
},
"routes?": {
"ha?": {
probe_interval: goDuration.default("10s"),
probe_timeout: goDuration.default("5s"),
},
},
},
database: databaseConfig,
acme_url: 'string = "https://acme-v02.api.letsencrypt.org/directory"',
@@ -147,5 +159,8 @@ export const headscaleConfig = type({
enabled: goBool.default(false),
},
randomize_client_port: goBool.default(false),
"randomize_client_port?": goBool,
"auto_update?": {
enabled: goBool.default(false),
},
});