relay.sh 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. #
  3. # This is an example how to start a TURN Server in
  4. # non-secure mode (when authentication is not used).
  5. # We start here a TURN Server listening on IPv4 address
  6. # 127.0.0.1 and on IPv6 address ::1. We use 127.0.0.1 as
  7. # IPv4 relay address, and we use ::1 as IPv6 relay address.
  8. # Other options:
  9. # set bandwidth limit on client session 3000000 bytes per second (--max-bps)
  10. # use fingerprints (-f)
  11. # use 3 relay threads (-m 3)
  12. # use min UDP relay port 32355 and max UDP relay port 65535
  13. # --no-tls and --no-dtls mean that we are not trying to
  14. # --no-auth means that no authentication to be used,
  15. # allow anonymous users.
  16. # start TLS and DTLS services.
  17. # Other parameters (config file name, etc) are default.
  18. if [ -d examples ] ; then
  19. cd examples
  20. fi
  21. export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/:/usr/local/mysql/lib/
  22. export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/usr/local/lib/:/usr/local/mysql/lib/
  23. PATH="bin:../bin:../../bin:${PATH}" turnserver -v --syslog -L 127.0.0.1 -L ::1 -E 127.0.0.1 -E ::1 --max-bps=3000000 -f -m 3 --min-port=32355 --max-port=65535 --no-tls --no-dtls --no-auth --db="var/db/turndb" $@