jean-cloud-services/services/radiodemo-back.oma-radio.fr/wg-radiodemo.sh
Adrian Amaglio 48a27ddf71 update
2023-06-08 09:34:51 +02:00

21 lines
381 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
. .env
[ -f "$DATA_DIR/privatekey" ] || { echo 'No privatekey found' && exit 1 ; }
echo "
[Interface]
PrivateKey = $(cat "$DATA_DIR/privatekey")
Address = 10.29.0.1/32
ListenPort = 55820
[Peer]
PublicKey = uXAXi3rthdRY2zkSgHpl3EqxQnxdw3aiAwNX6HhFHgI=
AllowedIPs = 10.29.0.254/32
Endpoint = radiodemo.oma-radio.fr:55820
PersistentKeepalive = 30
"