initial commit
This commit is contained in:
commit
43e8780420
7 changed files with 62 additions and 0 deletions
11
templates/wireguard.conf.j2
Normal file
11
templates/wireguard.conf.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Interface]
|
||||
Address = {{ (item.ip + item.ip6)|join(', ') }}
|
||||
ListenPort = {{ item.lport }}
|
||||
PrivateKey = {{ item.privkey }}
|
||||
|
||||
{% for peer in item.peers %}
|
||||
[Peer]
|
||||
PublicKey = {{ peer.PublicKey }}
|
||||
AllowedIPs = {{ peer.AllowedIPs|join(', ') }}
|
||||
{% if peer.Endpoint is defined %}Endpoint = {{ peer.Endpoint }}{% endif %}
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue