Skip to content

Commit

Permalink
Adjust secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Jun 5, 2023
1 parent 6244a51 commit e945e30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 6 additions & 8 deletions Containers/talk-recording/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
if [ -z "$NC_DOMAIN" ]; then
echo "You need to provide the NC_DOMAIN."
exit 1
elif [ -z "$SIGNALING_SECRET" ]; then
echo "You need to provide the SIGNALING_SECRET."
exit 1
elif [ -z "$RECORDING_SECRET" ]; then
echo "You need to provide the RECORDING_SECRET."
exit 1
elif [ -z "$INTERNAL_SECRET" ]; then
echo "You need to provide the INTERNAL_SECRET."
exit 1
fi

cat << RECORDING_CONF > "/etc/recording.conf"
Expand All @@ -21,8 +21,8 @@ listen = 0.0.0.0:1234
[backend]
allowall = false
# Not sure if the secret is needed here if we set it in backend-id
# secret = ${RECORDING_SECRET}
# TODO: remove secret below when https://github.com/nextcloud/spreed/issues/9580 is fixed
secret = ${RECORDING_SECRET}
backends = backend-id
skipverify = false
maxmessagesize = 1024
Expand All @@ -36,13 +36,11 @@ secret = ${RECORDING_SECRET}
skipverify = false
[signaling]
# Not sure if the secret is needed here if we set it in signaling-id
# internalsecret = ${SIGNALING_SECRET}
signalings = signaling-id
[signaling-id]
url = https://${NC_DOMAIN}/standalone-signaling/
internalsecret = ${SIGNALING_SECRET}
internalsecret = ${INTERNAL_SECRET}
[ffmpeg]
# outputaudio = -c:a libopus
Expand Down
5 changes: 4 additions & 1 deletion Containers/talk/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ elif [ -z "$TURN_SECRET" ]; then
elif [ -z "$SIGNALING_SECRET" ]; then
echo "You need to provide the SIGNALING_SECRET."
exit 1
elif [ -z "$INTERNAL_SECRET" ]; then
echo "You need to provide the INTERNAL_SECRET."
exit 1
fi

set -x
Expand Down Expand Up @@ -63,7 +66,7 @@ hashkey = $(openssl rand -hex 16)
blockkey = $(openssl rand -hex 16)
[clients]
internalsecret = $(openssl rand -hex 16)
internalsecret = ${INTERNAL_SECRET}
[backend]
backends = backend-1
Expand Down

0 comments on commit e945e30

Please sign in to comment.