ansible-ffibk/roles/service-bird-lg/templates/lgproxy.cfg.j2

23 lines
566 B
Text
Raw Normal View History

2018-09-21 15:59:10 +02:00
DEBUG=False
LOG_FILE="/var/log/bird-lg/lg-proxy.log"
LOG_LEVEL="WARNING"
BIND_IP = "{{ loopback_net_ipv4 | ipaddr(magic) | ipaddr('address') }}"
2018-09-21 15:59:10 +02:00
BIND_PORT = 5000
ACCESS_LIST = [
{% for network in my_wireguard_networks %}
{% if network.remote_hostname in groups["ffmwu-monitoring"] %}
{% if magic > network.remote_magic %}
"{{ network.ipv4 | ipaddr(0) | ipaddr('address') }}",
{% else %}
"{{ network.ipv4 | ipaddr(1) | ipaddr('address') }}",
{% endif %}
{% endif %}
{% endfor %}
]
2018-09-21 15:59:10 +02:00
BIRD_SOCKET="/var/run/bird/bird.ctl"
BIRD6_SOCKET="/var/run/bird/bird6.ctl"