create config template for headscale

This commit is contained in:
debian
2025-10-24 00:04:12 +02:00
parent 425de79c33
commit 29772a655b
2 changed files with 5 additions and 9 deletions

View File

@@ -10,13 +10,13 @@
# #
# https://myheadscale.example.com:443 # https://myheadscale.example.com:443
# #
server_url: http://0.0.0.0:8080 server_url: {{ headscale_server_url }}
# Address to listen to / bind to on the server # Address to listen to / bind to on the server
# #
# For production: # For production:
listen_addr: 0.0.0.0:8080
#listen_addr: 127.0.0.1:8080 #listen_addr: 127.0.0.1:8080
listen_addr: {{ headscale_listen_addr }}
# Address to listen to /metrics and /debug, you may want # Address to listen to /metrics and /debug, you may want
# to keep this endpoint private to your internal network # to keep this endpoint private to your internal network
@@ -276,7 +276,7 @@ dns:
# `base_domain` must be a FQDN, without the trailing dot. # `base_domain` must be a FQDN, without the trailing dot.
# The FQDN of the hosts will be # The FQDN of the hosts will be
# `hostname.base_domain` (e.g., _myhost.example.com_). # `hostname.base_domain` (e.g., _myhost.example.com_).
base_domain: example.com base_domain: {{ headscale_base_domain }}
# Whether to use the local DNS settings of a node or override the local DNS # 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. # settings (default) and force the use of Headscale's DNS configuration.
@@ -285,10 +285,7 @@ dns:
# List of DNS servers to expose to clients. # List of DNS servers to expose to clients.
nameservers: nameservers:
global: global:
- 1.1.1.1 - {{ dns_nameserver }}
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
# NextDNS (see https://tailscale.com/kb/1218/nextdns/). # NextDNS (see https://tailscale.com/kb/1218/nextdns/).
# "abc123" is example NextDNS ID, replace with yours. # "abc123" is example NextDNS ID, replace with yours.

View File

@@ -15,8 +15,7 @@ services:
command: serve command: serve
environment: environment:
HEADSCALE_SERVER_URL: ${HOST_IP} HEADSCALE_SERVER_URL: ${HOST_IP}
HEADSCALE_DNS_NAMESERVERS: ${DNS_NODE_IP:-10.10.10.3} HEADSCALE_DNS_NAMESERVERS: ${DNS_NODE_IP:-1.1.1.1}
HEADSCALE_DNS_MAGIC_DNS: "true"
networks: networks:
- ip4net - ip4net
labels: labels: