1
0
Fork 0

Make nameservers and base_domain configurable

This commit is contained in:
Daniele Tricoli 2022-08-29 03:11:35 +02:00
parent b376c36c76
commit 740fa44656
2 changed files with 6 additions and 2 deletions

View File

@ -13,3 +13,5 @@ headscale_download_url: "https://github.com/juanfont/headscale/releases/download
headscale_dir: /srv/headscale
headscale_server_url: http://127.0.0.1:8080
headscale_listen_addr: 0.0.0.0:8080
headscale_nameservers: ['1.1.1.1']
headscale_base_domain: example.org

View File

@ -191,7 +191,9 @@ acl_policy_path: ""
dns_config:
# List of DNS servers to expose to clients.
nameservers:
- 1.1.1.1
{% for nameserver in headscale_nameservers %}
- {{ nameserver }}
{% endfor %}
# Split DNS (see https://tailscale.com/kb/1054/dns/),
# list of search domains and the DNS to query for each one.
@ -214,7 +216,7 @@ dns_config:
# `base_domain` must be a FQDNs, without the trailing dot.
# The FQDN of the hosts will be
# `hostname.namespace.base_domain` (e.g., _myhost.mynamespace.example.com_).
base_domain: example.com
base_domain: {{ headscale_base_domain }}
# Unix socket used for the CLI to connect without authentication
# Note: for local development, you probably want to change this to: