From 3db353a9f028deebe188b86a3e36721e406db016 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Fri, 15 May 2026 09:26:40 +0800 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=E9=96=8B=E5=95=9F=20EMQX=208883=20(MQ?= =?UTF-8?q?TTS)=20=E5=9F=A0=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 在 compose.yaml 中新增 8883 埠位映射,支援加密的 MQTT 通訊 (MQTTS)。 2. 同步更新 .env.example 新增 MQTT_SSL_PORT 變數。 3. 此變更將觸發 Demo 環境重啟 EMQX 容器以套用新埠位。 --- .env.example | 1 + compose.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.example b/.env.example index 15b3ba5..44cda9b 100644 --- a/.env.example +++ b/.env.example @@ -84,4 +84,5 @@ MQTT_OUTGOING_QUEUE=mqtt_outgoing_commands # EMQX Ports (for local dev) MQTT_PORT=1883 +MQTT_SSL_PORT=8883 EMQX_DASHBOARD_PORT=18083 diff --git a/compose.yaml b/compose.yaml index 276c232..f9aefb4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -118,6 +118,7 @@ services: hostname: emqx ports: - '${MQTT_PORT:-1883}:1883' + - '${MQTT_SSL_PORT:-8883}:8883' - '${EMQX_DASHBOARD_PORT:-18083}:18083' - '8083:8083' environment: