Skip to content
Snippets Groups Projects
Commit fd76f957 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

make the directory for me please

parent 3b54bf37
No related branches found
No related tags found
4 merge requests!108Merge staging into production,!107Merge develop into staging,!105use nix to extra values from our nix config,!91Integrate monitoring into production
Pipeline #726 passed
......@@ -26,6 +26,8 @@ CONFIG=$(nix-instantiate --strict --json --eval "${SRC}"/get-vpn-config.nix --ar
MONITORING_IPS=$(echo $CONFIG | jp --unquoted "join(' ', clientIPs)")
VPNSERVER_IP=$(echo $CONFIG | jp --unquoted "serverIP")
mkdir -p "${VPN_SECRETS}"
for i in $MONITORING_IPS $VPNSERVER_IP; do
wg genkey | tee "${VPN_SECRETS}"/${i}.key | wg pubkey > "${VPN_SECRETS}"/${i}.pub
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment