mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
talk - improve a few things
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
dfc2d9798e
commit
93bd1ce2ee
2 changed files with 1 additions and 19 deletions
|
|
@ -7,9 +7,6 @@ if [ -z "$NC_DOMAIN" ]; then
|
||||||
elif [ -z "$TURN_SECRET" ]; then
|
elif [ -z "$TURN_SECRET" ]; then
|
||||||
echo "You need to provide the TURN_SECRET."
|
echo "You need to provide the TURN_SECRET."
|
||||||
exit 1
|
exit 1
|
||||||
elif [ -z "$JANUS_API_KEY" ]; then
|
|
||||||
echo "You need to provide the JANUS_API_KEY."
|
|
||||||
exit 1
|
|
||||||
elif [ -z "$SIGNALING_SECRET" ]; then
|
elif [ -z "$SIGNALING_SECRET" ]; then
|
||||||
echo "You need to provide the SIGNALING_SECRET."
|
echo "You need to provide the SIGNALING_SECRET."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -36,14 +33,6 @@ TURN_CONF
|
||||||
|
|
||||||
# Janus
|
# Janus
|
||||||
set -x
|
set -x
|
||||||
sed -i "s|#turn_rest_api_key.*|turn_rest_api_key = \"$JANUS_API_KEY\"|" /etc/janus/janus.jcfg
|
|
||||||
sed -i "s|#full_trickle.*|full_trickle = true|g" /etc/janus/janus.jcfg
|
|
||||||
sed -i 's|#stun_server.*|stun_server = "127.0.0.1"|g' /etc/janus/janus.jcfg
|
|
||||||
sed -i "s|#stun_port.*|stun_port = $TALK_PORT|g" /etc/janus/janus.jcfg
|
|
||||||
sed -i "s|#turn_port.*|turn_port = $TALK_PORT|g" /etc/janus/janus.jcfg
|
|
||||||
sed -i 's|#turn_server.*|turn_server = "127.0.0.1"|g' /etc/janus/janus.jcfg
|
|
||||||
sed -i 's|#turn_type .*|turn_type = "udp"|g' /etc/janus/janus.jcfg
|
|
||||||
sed -i 's|#ice_ignore_list .*|ice_ignore_list = "udp"|g' /etc/janus/janus.jcfg
|
|
||||||
sed -i 's|#interface.*|interface = "lo"|g' /etc/janus/janus.transport.websockets.jcfg
|
sed -i 's|#interface.*|interface = "lo"|g' /etc/janus/janus.transport.websockets.jcfg
|
||||||
sed -i 's|#ws_interface.*|ws_interface = "lo"|g' /etc/janus/janus.transport.websockets.jcfg
|
sed -i 's|#ws_interface.*|ws_interface = "lo"|g' /etc/janus/janus.transport.websockets.jcfg
|
||||||
sed -i 's|certfile =|#certfile =|g' /etc/janus/janus.transport.mqtt.jcfg
|
sed -i 's|certfile =|#certfile =|g' /etc/janus/janus.transport.mqtt.jcfg
|
||||||
|
|
@ -81,11 +70,6 @@ url = nats://127.0.0.1:4222
|
||||||
[mcu]
|
[mcu]
|
||||||
type = janus
|
type = janus
|
||||||
url = ws://127.0.0.1:8188
|
url = ws://127.0.0.1:8188
|
||||||
|
|
||||||
[turn]
|
|
||||||
apikey = ${JANUS_API_KEY}
|
|
||||||
secret = ${TURN_SECRET}
|
|
||||||
servers = turn:$NC_DOMAIN:$TALK_PORT?transport=tcp,turn:$NC_DOMAIN:$TALK_PORT?transport=udp
|
|
||||||
SIGNALING_CONF
|
SIGNALING_CONF
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
|
|
@ -240,14 +240,12 @@
|
||||||
"NC_DOMAIN=%NC_DOMAIN%",
|
"NC_DOMAIN=%NC_DOMAIN%",
|
||||||
"TURN_SECRET=%TURN_SECRET%",
|
"TURN_SECRET=%TURN_SECRET%",
|
||||||
"SIGNALING_SECRET=%SIGNALING_SECRET%",
|
"SIGNALING_SECRET=%SIGNALING_SECRET%",
|
||||||
"JANUS_API_KEY=%JANUS_API_KEY%",
|
|
||||||
"TZ=%TIMEZONE%",
|
"TZ=%TIMEZONE%",
|
||||||
"TALK_PORT=%TALK_PORT%"
|
"TALK_PORT=%TALK_PORT%"
|
||||||
],
|
],
|
||||||
"secrets": [
|
"secrets": [
|
||||||
"TURN_SECRET",
|
"TURN_SECRET",
|
||||||
"SIGNALING_SECRET",
|
"SIGNALING_SECRET"
|
||||||
"JANUS_API_KEY"
|
|
||||||
],
|
],
|
||||||
"restart": "unless-stopped"
|
"restart": "unless-stopped"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue