
lighthouse:
  # am_lighthouse is used to enable lighthouse functionality for a node. This should ONLY be true on nodes
  # you have configured to be lighthouses in your network
  am_lighthouse: {{ am_lighthouse | lower }}

  # serve_dns optionally starts a dns listener that responds to various queries and can even be
  # delegated to for resolution
  {% if am_lighthouse %}
  serve_dns: true
  dns:
    # The DNS host defines the IP to bind the dns listener to. This also allows binding to the nebula node IP.
    host: 0.0.0.0
    port: 53
  {% endif %}

{% if not am_lighthouse %}
  # hosts is a list of lighthouse hosts this node should report to and query from
  # IMPORTANT: THIS SHOULD BE EMPTY ON LIGHTHOUSE NODES
  # IMPORTANT2: THIS SHOULD BE LIGHTHOUSES' NEBULA IPs, NOT LIGHTHOUSES' REAL ROUTABLE IPs
  hosts:
{% for lh in lighthouses %}
    - "{{ lh.nebula_ip }}"
{% endfor %}
{% endif %}
  # interval is the number of seconds between updates from this node to a lighthouse.
  # during updates, a node sends information about its current IP addresses to each node.
  interval: 60

{% block lighthouse_remote_allow_list %}{% endblock %}
{% block lighthouse_experimental %}{% endblock %}
{% block lighthouse_local_allow_list %}{% endblock %}
{% block lighthouse_advertise_addrs %}{% endblock %}
