polycule-network/templates/wg-pn.conf.j2
2024-05-02 11:31:34 +02:00

14 lines
No EOL
325 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}}
PersistentKeepalive = 25
{% endfor %}