Infra_mgmt/roles/wireguard/templates/clients.conf.j2

13 lines
454 B
Plaintext
Raw Normal View History

2023-03-01 22:52:00 +01:00
[Interface]
Address = {{ item.Address }}
ListenPort = {{ wireguard_port }}
PrivateKey = {{ _privkey_value['content'] | b64decode | trim }}
{% if item.DNS|length > 0 %}DNS = {{ item.DNS }}
{% endif %}
[Peer]
PublicKey = {{ server_public_key }}
PresharedKey = {{ preshared_key }}
AllowedIPs = {{ item.AllowedIPs }}
Endpoint = {{ wireguard_hostname }}:{{ wireguard_port }}
PersistentKeepalive = {{ item.PersistentKeepalive | default(wireguard_keepalive) }}