make wireguard peers file

This commit is contained in:
2026-03-02 19:02:12 +01:00
parent 004e59f708
commit afca3b3f39
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -22,3 +22,8 @@ wgkeys.rec: wireguard/dmz_public_key
wireguard/dmz.conf: xecut/nimbus/dmz.conf | wireguard/dmz_private_key
sed 's/PRIVATE_KEY/$(shell cat $|)/' $< > $@
###### Wireguard configuration #####
wireguard/wg_peers.txt: wgkeys.rec | xecut/nimbus/wireguard_server.fmt
recsel $< -t $(basename $<) | recfmt -f $| > $@
+4
View File
@@ -0,0 +1,4 @@
[Peer]
PublicKey = {{pubkey}}
AllowedIPs = 10.0.0.2/32