Node.js 设置Coturn

Node.js 设置Coturn,node.js,webrtc,turn,coturn,Node.js,Webrtc,Turn,Coturn,我正在尝试为我的webRTC应用程序配置coturn服务器。不过,我在几天的努力后,终于碰壁了。我知道我的webRTC node.js应用程序正在使用turnserver。因为我已经获得了一些免费的turnserver,但它们不断崩溃,我无论如何都需要自己的 这是我启动coturn时的日志 ==== Show him the instruments, Practical Frost: ==== 0: TLS supported 0: DTLS supported 0: DTLS 1.2

我正在尝试为我的webRTC应用程序配置coturn服务器。不过,我在几天的努力后,终于碰壁了。我知道我的webRTC node.js应用程序正在使用turnserver。因为我已经获得了一些免费的turnserver,但它们不断崩溃,我无论如何都需要自己的

这是我启动coturn时的日志

    ==== Show him the instruments, Practical Frost: ====

0: TLS supported
0: DTLS supported
0: DTLS 1.2 supported
0: TURN/STUN ALPN supported
0: Third-party authorization (oAuth) supported
0: GCM (AEAD) supported
0: OpenSSL compile-time version: OpenSSL 1.0.2g-fips  1 Mar 2016
0:
0: SQLite supported, default database location is /var/lib/turn/turndb
0: Redis supported
0: PostgreSQL supported
0: MySQL supported
0: MongoDB is not supported
0:
0: Default Net Engine version: 3 (UDP thread per CPU core)

=====================================================

0: Config file found: /etc/turnserver.conf
0: Listener address to use: 192.168.206.115
0: Relay address to use: 192.168.206.115
ERROR: Cannot open log file for writing: /var/log/turnserver/turn_2017-08-07.log
0: log file opened: /var/log/turn_28860_2017-08-07.log
0: Config file found: /etc/turnserver.conf
0: Domain name:
0: Default realm: external.ip
0: SSL23: Certificate file found: /etc/keys/crt.pem
0: SSL23: Private key file found: /etc/keys/key.pem
0: TLS1.0: Certificate file found: /etc/keys/crt.pem
0: TLS1.0: Private key file found: /etc/keys/key.pem
0: TLS1.1: Certificate file found: /etc/keys/crt.pem
0: TLS1.1: Private key file found: /etc/keys/key.pem
0: TLS1.2: Certificate file found: /etc/keys/crt.pem
0: TLS1.2: Private key file found: /etc/keys/key.pem
0: TLS cipher suite: DEFAULT
0: DTLS1.2: Certificate file found: /etc/keys/crt.pem
0: DTLS1.2: Private key file found: /etc/keys/key.pem
0: DTLS: Certificate file found: /etc/keys/crt.pem
0: DTLS: Private key file found: /etc/keys/key.pem
0: DTLS cipher suite: DEFAULT
0: pid file created: /var/run/turnserver.pid
0: IO method (main listener thread): epoll (with changelist)
0: WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided
0: Wait for relay ports initialization...
0:   relay 192.168.206.115 initialization...
0:   relay 192.168.206.115 initialization done
0: Relay ports initialization done
0: IO method (general relay thread): epoll (with changelist)
1: turn server id=1 created
1: IPv4. TLS/SCTP listener opened on : 192.168.206.115:80
1: IPv4. TLS/TCP listener opened on : 192.168.206.115:80
1: IPv4. TLS/SCTP listener opened on : 192.168.206.115:443
1: IPv4. TLS/TCP listener opened on : 192.168.206.115:443
1: IO method (general relay thread): epoll (with changelist)
1: turn server id=0 created
1: IPv4. DTLS/UDP listener opened on: 192.168.206.115:80
1: IPv4. DTLS/UDP listener opened on: 192.168.206.115:443
1: Total General servers: 2
1: IPv4. TLS/TCP listener opened on : 192.168.206.115:80
1: IPv4. TLS/TCP listener opened on : 192.168.206.115:443
1: IO method (admin thread): epoll (with changelist)
1: ERROR: Cannot create CLI listener
1: IO method (auth thread): epoll (with changelist)
1: IO method (auth thread): epoll (with changelist)
1: SQLite DB connection success: /var/lib/turn/turndb
40: IPv4. tcp or tls connected to: 192.168.204.7:56282
40: read_client_connection: HTTP request: GET / HTTP/1.1
Host: 192.168.204.116
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
这是我尝试在应用程序中使用服务器时的日志。(更改了外部ip值)

我尝试了几种不同的配置,但都没有成功。如果您对配置有任何意见,请告知,因为任何信息都会有所帮助。那里缺少可用的coturn

我在turnuserdb.conf中有一个用户

karl:123
但如果我打开“使用身份验证机密”等,我仍然会

17: ERROR: check_stun_auth: Cannot find credentials of user <karl>
17:错误:check\u stun\u auth:找不到用户的凭据
在我的日志中


提前感谢。

您可以展示您的客户端ICEServer配置吗?
karl:123
17: ERROR: check_stun_auth: Cannot find credentials of user <karl>