From 4a4dbf123e9a6aace8c871b4373b71bf32cc6fc5 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sun, 14 Dec 2025 15:29:13 +0800 Subject: [PATCH] =?UTF-8?q?update:mqtt=E9=83=A8=E7=BD=B2=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mqtt-gateway-integration.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/mqtt-gateway-integration.md b/docs/mqtt-gateway-integration.md index b2f3068c..2b96255f 100644 --- a/docs/mqtt-gateway-integration.md +++ b/docs/mqtt-gateway-integration.md @@ -76,6 +76,7 @@ MQTT_PORT=1883 # MQTT服务器端口 UDP_PORT=8884 # UDP服务器端口 API_PORT=8007 # 管理API端口 MQTT_SIGNATURE_KEY=test # MQTT签名密钥 +SERVER_SECRET=Te1st12134 # 服务器密钥,请保持和智控台(server.secret)一致或者和xiaozhi-server里(server.auth_key)保持一致 ``` 请注意`PUBLIC_IP`配置,确保其与实际公网IP一致,如果有域名就填域名。 @@ -85,6 +86,13 @@ MQTT_SIGNATURE_KEY=test # MQTT签名密钥 - 注意不要用简单的密码,比如`123456`、`test`等。 - 注意不要用简单的密码,比如`123456`、`test`等。 +`SERVER_SECRET` 是用生成websocket连接的认证信息。 + +1、如果你是全模块部署,且你的智控台的参数管理里`server.auth.enabled`设置成了`true`,那么,`SERVER_SECRET`需要和智控台(`server.secret`)保持一致。 + +2、如果你是单模块部署,且你在配置文件里把`server.auth.enabled`设置成了`true`,那么,`SERVER_SECRET`需要和配置文件里(`server.auth_key`)保持一致。 + + 6. 启动MQTT网关 ``` # 启动服务