mirror of
https://gitverse.ru/kpa39l/infrastructure.git
synced 2026-09-29 01:55:03 +00:00
17 lines
344 B
Django/Jinja
17 lines
344 B
Django/Jinja
[Interface]
|
|
PrivateKey = {{ host_private_key }}
|
|
Address = {{ wg_ip }}/24
|
|
ListenPort = {{ wg_port }}
|
|
|
|
{% for peer in wireguard_peers %}
|
|
{% if peer.ip != wg_ip %}
|
|
[Peer]
|
|
PublicKey = {{ peer.pubkey }}
|
|
AllowedIPs = {{ peer.ip }}/32
|
|
{% if peer.endpoint %}
|
|
Endpoint = {{ peer.endpoint }}
|
|
PersistentKeepalive = 25
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|