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

15 lines
330 B
Text
Raw Normal View History

2023-04-06 18:27:58 +00:00
[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 }}