create config template for headscale
This commit is contained in:
@@ -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.
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user