Skip to content

Commit

Permalink
hotfix to example docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
danisla committed Sep 28, 2023
1 parent bb50f34 commit 70dc731
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Dockerfile.example
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,21 @@ RUN echo 'export DISPLAY=:0' \

# Write turnserver script
RUN echo "#!/bin/bash\n\
exec turnserver\n\
--verbose\n\
--no-tls\n\
--listening-ip=0.0.0.0\n\
--listening-port=\${TURN_PORT:-3478}\n\
--realm=\${TURN_REALM:-example.com}\n\
--channel-lifetime=\${TURN_CHANNEL_LIFETIME:--1}\n\
--min-port=\${TURN_MIN_PORT:-49152}\n\
--max-port=\${TURN_MAX_PORT:-65535}\n\
--user selkies:selkies\n\
--no-cli\n\
--cli-password selkies\n\
--allow-loopback-peers\n\
--db \${HOME}/.config/turndb\n\
\${EXTRA_ARGS} \$@\n\
exec turnserver \\\n\
--verbose \\\n\
--no-tls \\\n\
--listening-ip=0.0.0.0 \\\n\
--listening-port=\${TURN_PORT:-3478} \\\n\
--realm=\${TURN_REALM:-example.com} \\\n\
--channel-lifetime=\${TURN_CHANNEL_LIFETIME:--1} \\\n\
--min-port=\${TURN_MIN_PORT:-49152} \\\n\
--max-port=\${TURN_MAX_PORT:-65535} \\\n\
--user selkies:selkies \\\n\
--no-cli \\\n\
--cli-password selkies \\\n\
--allow-loopback-peers \\\n\
--db \${HOME}/.config/turndb \\\n\
\${EXTRA_ARGS} \$@ \\\n\
" > /start-turnserver.sh && chmod +x /start-turnserver.sh

# Write startup script
Expand All @@ -191,7 +191,7 @@ export PULSE_SERVER=unix:/run/pulse/native\n\
sudo /usr/bin/pulseaudio -k >/dev/null 2>&1\n\
sudo /usr/bin/pulseaudio --daemonize --system --verbose --log-target=file:/tmp/pulseaudio.log --realtime=true --disallow-exit -L 'module-native-protocol-tcp auth-ip-acl=127.0.0.0/8 port=4713 auth-anonymous=1'\n\
[[ \${START_XFCE4:-true} == 'true' ]] && rm -rf ~/.config/xfce4 && xfce4-session &\n\
/start-turnserver.sh &\n\
sudo /start-turnserver.sh &\n\
export WEBRTC_ENCODER=\${WEBRTC_ENCODER:-x264enc}\n\
export WEBRTC_ENABLE_RESIZE=\${WEBRTC_ENABLE_RESIZE:-true}\n\
export TURN_HOST=\${TURN_HOST:-localhost}\n\
Expand Down

0 comments on commit 70dc731

Please sign in to comment.