-
Notifications
You must be signed in to change notification settings - Fork 665
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
talk-recording - set allow_all and skip_verify via env #2880
Conversation
can I ask for a reason? |
@SystemKeeper asked me if he could reuse the container in @juliushaertl docker-dev. For that he needs to adjust these values in order to run it locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No sorry this is not working like this, I’ll add some more details later
So, back again. Again, very sorry for not finding the time earlier and now rushing into this :-(. I noticed 2 things here I wanted to discuss:
So what I thought was to do something like this: diff --git a/Containers/talk-recording/start.sh b/Containers/talk-recording/start.sh
index 991ea69..f38a7a9 100644
--- a/Containers/talk-recording/start.sh
+++ b/Containers/talk-recording/start.sh
@@ -12,6 +12,15 @@ elif [ -z "$INTERNAL_SECRET" ]; then
exit 1
fi
+if [ -z "$SIGNALING_URL" ]; then
+ SIGNALING_URL="https://${NC_DOMAIN}/standalone-signaling/"
+fi
+
+# TODO: Enable if-clause below when https://github.com/nextcloud/spreed/issues/9580 is fixed
+#if [ "$ALLOW_ALL" = true ]; then
+ ALLOW_ALL_SECRET="secret = ${RECORDING_SECRET}"
+#fi
+
cat << RECORDING_CONF > "/etc/recording.conf"
[logs]
# 30 means Warning
@@ -22,8 +31,7 @@ listen = 0.0.0.0:1234
[backend]
allowall = ${ALLOW_ALL}
-# TODO: remove secret below when https://github.com/nextcloud/spreed/issues/9580 is fixed
-secret = ${RECORDING_SECRET}
+${ALLOW_ALL_SECRET}
backends = backend-1
skipverify = ${SKIP_VERIFY}
maxmessagesize = 1024
@@ -32,7 +40,7 @@ videoheight = 1080
directory = /tmp
[backend-1]
-url = ${HPB_PROTOCOL}://${NC_DOMAIN}
+url = https://${NC_DOMAIN}
secret = ${RECORDING_SECRET}
skipverify = ${SKIP_VERIFY}
@@ -40,7 +48,7 @@ skipverify = ${SKIP_VERIFY}
signalings = signaling-1
[signaling-1]
-url = ${HPB_PROTOCOL}://${NC_DOMAIN}/standalone-signaling/
+url = ${SIGNALING_URL}
internalsecret = ${INTERNAL_SECRET}
[ffmpeg] For the first issue we just check if For the second issue we check if a |
I guess this would be the simplest approach then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works! Thank you very much!
We need to keep in mind that the TODO about the global secret is not true anymore when we set ALLOW_ALL
to true
.
Also, it does not work with latest master of talk, because of nextcloud/spreed#9940 (but no backport yet).
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: Simon L <szaimen@e.mail.de>
badabe0
to
a262d1f
Compare
This is now released with v6.4.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel |
No description provided.