full-dns/templates/wireguard.conf.j2
2020-08-03 19:25:51 +02:00

15 lines
391 B
Django/Jinja

[Interface]
Address = {{ server.vpn.address }}/{{ server.vpn.net_size }}
PrivateKey = {{ server.vpn.private_key }}
ListenPort = {{ server.vpn.listen_port|default(1194) }}
{% for peer in others %}
[Peer]
AllowedIps = {{ peer.vpn.address }}/32
Endpoint = {{ peer.public_ip }}:{{ peer.vpn.listen_port|default(1194) }}
PublicKey = {{ peer.vpn.public_key }}
{% endfor %}
# vim: set ft=dosini: