mirror of
https://github.com/coturn/coturn.git
synced 2025-08-11 16:57:09 +02:00
28 lines
1.2 KiB
Bash
Executable File
28 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This is an example how to start a TURN Server in
|
|
# non-secure mode (when authentication is not used).
|
|
# We start here a TURN Server listening on IPv4 address
|
|
# 127.0.0.1 and on IPv6 address ::1. We use 127.0.0.1 as
|
|
# IPv4 relay address, and we use ::1 as IPv6 relay address.
|
|
# Other options:
|
|
# set bandwidth limit on client session 3000000 bytes per second (--max-bps)
|
|
# use fingerprints (-f)
|
|
# use 3 relay threads (-m 3)
|
|
# use min UDP relay port 32355 and max UDP relay port 65535
|
|
# --no-tls and --no-dtls mean that we are not trying to
|
|
# --no-auth means that no authentication to be used,
|
|
# allow anonymous users.
|
|
# start TLS and DTLS services.
|
|
# --cli-password=secret means that cli password set to "secret"
|
|
# Other parameters (config file name, etc) are default.
|
|
|
|
if [ -d examples ] ; then
|
|
cd examples
|
|
fi
|
|
|
|
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/:/usr/local/mysql/lib/
|
|
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/usr/local/lib/:/usr/local/mysql/lib/
|
|
|
|
PATH="bin:../bin:../../bin:${PATH}" turnserver -v --syslog -L 127.0.0.1 -L ::1 -E 127.0.0.1 -E ::1 --allow-loopback-peers --cli-password secred --max-bps=3000000 -f -m 3 --min-port=32355 --max-port=65535 --no-tls --no-dtls --no-auth --db="var/db/turndb" $@
|