polycule-network/templates/wg-pn.conf.j2
2024-08-02 16:21:58 +02:00

14 lines
340 B
Django/Jinja

[Interface]
PrivateKey = {{ private_key }}
ListenPort = {{ listen_port }}
Address = {{ wireguard_address }}
{% for peer in peers %}
[Peer]
PublicKey = {{ peer.public_key }}
{%- if peer.endpoint is defined %}
Endpoint = {{ peer.endpoint }}
{%- endif %}
AllowedIPs = {{ peer.allowed_ips | join(', ') }}
PersistentKeepalive = 25
{% endfor %}