21 lines
381 B
Bash
Executable File
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 = iwIsUriF4CT/Jpu29VXlj43hT3bUjG67FeEgCTcQCVc=
|
|
AllowedIPs = 10.29.0.254/32
|
|
Endpoint = radiodemo.oma-radio.fr:55820
|
|
PersistentKeepalive = 30
|
|
"
|