Make nameservers and base_domain configurable
This commit is contained in:
parent
b376c36c76
commit
740fa44656
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue