首页 > 解决方案 > 使用 Apache Web 服务器在代理通行证下 TURN 服务器

问题描述

我正在尝试使用我自己的 coturn (TURN) 服务器。我希望它在端口 443 上运行。我已经在该端口上运行了 Apache。我可以使用 Apache 代理通行证在端口 3479、53499 上运行 TURN 但仍侦听端口 443?我不知道如何解决这个问题。我的方法错了吗?如果是,有什么更好的方法

listening-port=3478 
alt-listening-port=3479
tls-listening-port=5349
alt-tls-listening-port=5350



#stening-port=80

#tls-listening-port=443

listening-ip=127.0.0.1



relay-ip=127.0.0.1
external-ip=*****
realm=explain.bookmane.in
server-name=explain.bookmane.in

lt-cred-mech
userdb=/etc/turnuserdb.conf

标签: apachewebrtcturn

解决方案


Apparently, the latest version of COTURN, COTURN 4.5.2r3, recently released this year, and still marked as unstable, has just incorporated support for reverse proxy. I infer this from description I found in its config file: /etc/turnserver.conf https://github.com/coturn/coturn/blob/master/examples/etc/turnserver.conf

This is what it says:

# Some network setups will require using a TCP reverse proxy in front
# of the STUN server. If the proxy port option is set a single listener
# is started on the given port that accepts connections using the
# haproxy proxy protocol v2.
# (https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)
#
#tcp-proxy-port=5555"

推荐阅读