polycule-network/templates/wg-pn.conf.j2

15 lines
340 B
Text
Raw Permalink Normal View History

2024-05-02 09:31:34 +00:00
[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 %}
2024-08-02 14:21:58 +00:00
AllowedIPs = {{ peer.allowed_ips | join(', ') }}
2024-05-02 09:31:34 +00:00
PersistentKeepalive = 25
2024-08-02 14:21:58 +00:00
{% endfor %}