This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/wireguard/templates/wg.conf.j2
2023-04-06 20:27:58 +02:00

14 lines
330 B
Django/Jinja

[Interface]
Privatekey = {{ item.private_key }}
Address = {{ item.address }}
{% if 'dns' in item %}
DNS = {{ item.dns }}
{% endif %}
[Peer]
Publickey = {{ item.peer_public_key }}
{% if 'preshared_key' in item %}
PresharedKey={{ item.preshared_key }}
{% endif %}
Endpoint = {{ item.endpoint }}
AllowedIPs = {{ item.allowed_ips }}