https://devblog.nossa.me/2020/06/creating-a-portable-multistream-setup.html
Scripts needs a .yaml configuration file with specific data.
liveconfig.yml (for StreamServer.sh):
keys:
yt: '<YOUR-YOTUBE-PERSISTENT-KEY>'
fb: '<YOUR-FB-PERSISTENT-KEY>'
connconfig.yml (for ConnectionServer.sh):
wg:
client:
pubkey: '<CLIENT-PUBLIC-KEY>'
allowedIp: '10.11.0.3/24'
name: 'PC'
To download and prepare the scripts, you can use these commands (eventually, as scripts for cloud-init).
StreamServer.sh
(curl https://gist.githubusercontent.com/alessionossa/e52ac7d629006f18a44ce0f8340d1faa/raw/StreamServer.sh) > streamsetup.sh
chmod 755 setup.sh
touch liveconfig.yml
cat > liveconfig.yml <<EOF
keys:
yt: '<YOUR-YOTUBE-PERSISTENT-KEY>'
fb: '<YOUR-FB-PERSISTENT-KEY>'
EOF
ConnectionServer.sh
(curl https://gist.githubusercontent.com/alessionossa/e52ac7d629006f18a44ce0f8340d1faa/raw/ConnectionServer.sh) > connsetup.sh
chmod 755 setup.sh
touch connconfig.yml
cat > connconfig.yml <<EOF
wg:
client:
pubkey: '<CLIENT-PUBLIC-KEY>'
allowedIp: '10.11.0.3/24'
name: 'PC'
EOF