14 lines
No EOL
325 B
Django/Jinja
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 %} |