【发布时间】:2020-10-13 15:23:54
【问题描述】:
我有一台服务器,我正在使用 Ubuntu 20.04、nginx、mosquitto 和 node-red 和 docker,我们将网站称为 http://mywebsite.com。我面临的问题是我创建了一个客户端,让我们在 docker 中将其称为 client1,因此 URL 将是 http://mywebsite.com/client1
我想通过 mosquitto 建立一个 MQTT 连接,我正在发送关于主题 test 的数据
在MQTT的红色节点上,当我写我的mosquitto容器的IP地址时它工作的问题
但如果我用 mywebsite.com/client1 更改 IP 地址 192.144.0.5,我将无法连接到 mosquitto,也无法发送或接收任何形式的数据
关于如何解决这个问题的任何想法
【问题讨论】:
标签: docker docker-compose node-red nginx-reverse-proxy mosquitto