-
-
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
Merged
Merged
Implement Talk recording #2520
Changes from 11 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f2caf7e
Implement Talk recording
enoch85 412344b
set vars
enoch85 069e3cc
add docker
enoch85 aee1293
update lib.sh
enoch85 3cc887e
update variable
enoch85 51727da
fix shm_size
enoch85 f131fa6
Update apps/talk.sh
enoch85 7382622
Update apps/talk.sh
enoch85 3208cba
SC
enoch85 41d9b4f
update timezone
enoch85 32c5ca7
more fixes
enoch85 d548f59
more fixes
enoch85 743a511
Update apps/talk.sh
enoch85 898c8fd
SC
enoch85 7027151
formatting
enoch85 e1df83f
last SC
enoch85 2124805
Update apps/talk.sh
enoch85 d43ebba
Update apps/talk.sh
enoch85 e246dc3
Update apps/talk.sh
enoch85 9936dfb
add notice
enoch85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ else | |
| nextcloud_occ_no_check config:app:delete spreed stun_servers | ||
| nextcloud_occ_no_check config:app:delete spreed turn_servers | ||
| nextcloud_occ_no_check config:app:delete spreed signaling_servers | ||
| nextcloud_occ_no_check config:app:delete spreed recording_servers | ||
| nextcloud_occ_no_check app:remove spreed | ||
| rm -rf \ | ||
| "$TURN_CONF" \ | ||
|
|
@@ -66,6 +67,7 @@ else | |
| fi | ||
| done | ||
| apt-get autoremove -y | ||
| docker_prune_this talk-recording | ||
| # Show successful uninstall if applicable | ||
| removal_popup "$SCRIPT_NAME" | ||
| fi | ||
|
|
@@ -325,7 +327,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 +488,33 @@ 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="$(cat /etc/timezone)" \ | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| -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 does_this_docker_exist talk-recording | ||
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
enoch85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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_no_check 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
|
||
| fi | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.