# Headscale configuration for EduBox
server_url: https://headscale.alfrednobel.edudeploy.com
listen_addr: 0.0.0.0:8080
metrics_listen_addr: 0.0.0.0:9090
grpc_listen_addr: 127.0.0.1:50443

noise:
  private_key_path: /etc/headscale/noise_private.key

prefixes:
  v4: 100.64.0.0/10
  v6: fd7a:115c:a1e0::/48
  allocation: sequential

dns:
  magic_dns: true
  base_domain: edubox.local
  nameservers:
    global:
      - 1.1.1.1
      - 8.8.8.8
  override_local_dns: true

derp:
  server:
    enabled: true
    region_id: 999
    region_code: headscale
    region_name: Headscale Embedded DERP
    stun_listen_addr: 0.0.0.0:3478
    private_key_path: /etc/headscale/derp_server_private.key
  urls:
    - https://controlplane.tailscale.com/derpmap/default
  paths: []

database:
  type: sqlite3
  sqlite:
    path: /etc/headscale/db.sqlite

log:
  format: text
  level: info
