deploy wireguard

This commit is contained in:
Nikita Simonov
2026-05-29 20:00:09 +04:00
parent c190058931
commit a2af744cdb

View File

@@ -5,7 +5,13 @@
{% for peer in wireguard_interfaces[item].peers %}
[Peer]
{% for key, value in peer | dictsort %}
{{ key }} = {{ value }}
{% endfor %}
# {{ peer.name }}
PublicKey = {{ peer.PublicKey }}
AllowedIPs = {{ peer.AllowedIPs }}
{% if peer.Endpoint is defined %}
Endpoint = {{ peer.Endpoint }}
{% endif %}
{% if peer.PersistentKeepalive is defined %}
PersistentKeepalive = {{ peer.PersistentKeepalive }}
{% endif %}
{% endfor %}