Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
recording: env flag and bbb-record script
Browse files Browse the repository at this point in the history
  • Loading branch information
alangecker committed Jul 27, 2020
1 parent 76faab0 commit ce0606d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ ENABLE_COTURN=true
# https://docs.bigbluebutton.org/greenlight/gl-overview.html
ENABLE_GREENLIGHT=true

# Recording
# IMPORTANT: this is currently a big privacy issues, because it will
# record everything which happens in the conference, even when the button
# suggets, that it does not.
# https://github.com/bigbluebutton/bigbluebutton/issues/9202
# make sure that you get peoples consent, before they join a room
#ENABLE_RECORDING=true


# ====================================
# SECRETS
Expand Down
19 changes: 19 additions & 0 deletions scripts/bbb-record
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -e

cd $(dirname $0)/..

# load .env
if [ -f .env ]
then
# exclude WELCOME_FOOTER because it may contain invalid characters
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | xargs)
fi

if [ ! "$ENABLE_RECORDING" == true ]; then
echo "Error: recording is disabled why can't use bbb-record"
echo "set ENABLE_RECORDING in .env if you want to use it"
exit 1
fi

./scripts/compose exec recordings-process bbb-record $@

0 comments on commit ce0606d

Please sign in to comment.