File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ export GSTREAMER_PATH=/opt/gstreamer
32
32
33
33
export SELKIES_ENCODER=" ${SELKIES_ENCODER:- x264enc} "
34
34
export SELKIES_ENABLE_RESIZE=" ${SELKIES_ENABLE_RESIZE:- false} "
35
- if ( [ -z " ${SELKIES_TURN_USERNAME} " ] || [ -z " ${SELKIES_TURN_PASSWORD} " ] ) && [ -z " ${SELKIES_TURN_SHARED_SECRET} " ] || [ -z " ${SELKIES_TURN_HOST} " ] || [ -z " ${SELKIES_TURN_PORT} " ]; then
35
+ if [ -z " ${SELKIES_TURN_REST_URI} " ] && { { [ -z " ${SELKIES_TURN_USERNAME} " ] || [ -z " ${SELKIES_TURN_PASSWORD} " ]; } && [ -z " ${SELKIES_TURN_SHARED_SECRET} " ] || [ -z " ${SELKIES_TURN_HOST} " ] || [ -z " ${SELKIES_TURN_PORT} " ]; } ; then
36
36
export TURN_RANDOM_PASSWORD=" $( tr -dc ' A-Za-z0-9' < /dev/urandom 2> /dev/null | head -c 24) "
37
37
export SELKIES_TURN_HOST=" ${SELKIES_TURN_HOST:- $(curl -fsSL checkip.amazonaws.com 2>/ dev/ null || hostname -I 2>/ dev/ null | awk ' {print $1}' || echo ' 127.0.0.1' )} "
38
- export SELKIES_TURN_PORT=" 3478"
38
+ export SELKIES_TURN_PORT=" ${SELKIES_TURN_PORT :- 3478} "
39
39
export SELKIES_TURN_USERNAME=" selkies"
40
40
export SELKIES_TURN_PASSWORD=" ${TURN_RANDOM_PASSWORD} "
41
41
export SELKIES_TURN_PROTOCOL=" ${SELKIES_TURN_PROTOCOL:- tcp} "
You can’t perform that action at this time.
0 commit comments