apache - 使用 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
解决方案
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"
推荐阅读
- java - 将 Long/ULong 转换为带有填充零的无符号十六进制字符串
- power-automate - 将电子邮件附件保存到 Google 驱动器附件名称会自动删除该字母
- java - 包 sun.awt 不存在
- python - 使用 python 暴力破解密码的问题
- vb.net - 为什么我的代码在 ide 中显示警告消息“通过实例访问共享成员;将不评估限定表达式”
- kubernetes - 如何将应用程序与通过 Kubernetes Operator 创建的服务连接起来?
- php - 使用带有 mysql 数据的循环填充 PHP 关联数组
- laravel - 当我想要更改时,它不能正常工作
- haskell - GHC 如何将多态数字文字转换为具有 Num 实例的任意类型?
- json - 如何从文件中加载 json 并将其设置为 Vue 中的全局变量?