diff --git a/.env.sample b/.env.sample index 6f1c520..9a40bb0 100644 --- a/.env.sample +++ b/.env.sample @@ -6,3 +6,6 @@ DOMAIN=headscale.example.com #EXTRA_DOMAINS=', `www.headscale.example.com`' LETS_ENCRYPT_ENV=production + +# Defines the base domain to create the hostnames for MagicDNS. +BASE_DOMAIN=f0x.lan diff --git a/abra.sh b/abra.sh index cf22424..518f220 100755 --- a/abra.sh +++ b/abra.sh @@ -1,3 +1,3 @@ # Set any config versions here # Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs -export CONFIG_YAML_VERSION=v1 +export CONFIG_YAML_VERSION=v3 diff --git a/config.yaml.tmpl b/config.yaml.tmpl index fd99c3e..cba34b3 100644 --- a/config.yaml.tmpl +++ b/config.yaml.tmpl @@ -274,7 +274,7 @@ dns: # `base_domain` must be a FQDN, without the trailing dot. # The FQDN of the hosts will be # `hostname.base_domain` (e.g., _myhost.example.com_). - base_domain: example.com + base_domain: {{ env "BASE_DOMAIN" }} # 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.