-
-
Notifications
You must be signed in to change notification settings - Fork 673
Implement Talk recording #2520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Talk recording #2520
Changes from 9 commits
f2caf7e
412344b
069e3cc
aee1293
3cc887e
51727da
f131fa6
7382622
3208cba
41d9b4f
32c5ca7
d548f59
743a511
898c8fd
7027151
e1df83f
2124805
d43ebba
e246dc3
9936dfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -325,7 +325,7 @@ debug = false | |
| hashkey = $(openssl rand -hex 16) | ||
| blockkey = $(openssl rand -hex 16) | ||
| [clients] | ||
| internalsecret = $(openssl rand -hex 16) | ||
| internalsecret = $(TURN_INTERNAL_SECRET) | ||
| [backend] | ||
| allowed = ${TURN_DOMAIN} | ||
| allowall = false | ||
|
|
@@ -486,3 +486,35 @@ else | |
| msg_box "Congratulations, everything is working as intended! The installation succeeded.\n\nLogging can be found by typing: journalctl -lfu signaling" | ||
| exit 0 | ||
| fi | ||
|
|
||
| ####### Talk recording | ||
| print_text_in_color "$ICyan" "Setting up Talk recording..." | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Pull and start | ||
| docker pull nextcloud/aio-talk-recording:latest | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| docker run -t -d -p "$TURN_RECORDING_HOST":"$TURN_RECORDING_HOST_PORT":"$TURN_RECORDING_HOST_PORT" \ | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| --restart always \ | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| --name talk-recording \ | ||
| nextcloud/aio-talk-recording \ | ||
| –cap-add=sys_nice \ | ||
enoch85 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --shm-size=2g \ | ||
| -e NC_DOMAIN="${TURN_DOMAIN}" \ | ||
| -e TZ="${TIMEZONE}" \ | ||
| -e RECORDING_SECRET="${TURN_RECORDING_SECRET}" \ | ||
| -e INTERNAL_SECRET="${TURN_INTERNAL_SECRET}" | ||
enoch85 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Talk recording | ||
| if [ -d "$NCPATH/apps/spreed" ] | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| then | ||
| if [ "$TALK_RECORDING_ENABLED" = 'yes' ] | ||
|
||
| then | ||
| while ! nc -z "$TURN_RECORDING_HOST" 1234; do | ||
|
||
| echo "waiting for Talk Recording to become available..." | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| sleep 5 | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| done | ||
|
|
||
| nextcloud_occ config:app:set spreed recording_servers --value="{\"servers\":[{\"server\":\"http://$TURN_RECORDING_HOST:$TURN_RECORDING_HOST_PORT/\",\"verify\":true}],\"secret\":\"$TURN_RECORDING_SECRET\"}" | ||
enoch85 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| else | ||
| nextcloud_occ config:app:delete spreed recording_servers | ||
enoch85 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| fi | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.