Jake Howard 78fa36f20a
Move variables to 1 place
Much easier to manage
2020-01-17 22:31:50 +00:00

12 lines
284 B
Plaintext

[Interface]
Address = {{ wireguard.server.ip }}
PrivateKey = {{ wireguard.server.private_key }}
ListenPort = {{ wireguard.port }}
{% for name, config in wireguard.clients.items() %}
[Peer]
# {{ name }}
PublicKey = {{ config.public_key }}
AllowedIPs = {{ config.ip }}/32
{% endfor %}