commit e34e81f63ae31697c193d3ab74b660ac9f52a710
parent c00b7e7789b40f473804b00a398c5748d196b6bc
Author: Tomas Nemec <owl@gtms.dev>
Date: Sat, 8 Mar 2025 12:40:24 +0100
feat: use 8883 for tls and take username from CN
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/compose.yaml b/compose.yaml
@@ -71,4 +71,4 @@ services:
extra_hosts:
- "mqtt.home:<BROKER_IP>"
ports:
- - 1883:1883
+ - 8883:8883
diff --git a/mosquitto-bridge/mosquitto.conf b/mosquitto-bridge/mosquitto.conf
@@ -1,13 +1,14 @@
per_listener_settings true
persistence_location /mosquitto/data/
-listener 1883
+listener 8883
allow_anonymous false
require_certificate true
cafile /mosquitto/certs/ca.crt
certfile /mosquitto/certs/server.crt
keyfile /mosquitto/certs/server.key
+use_identity_as_username true
# Bridge to local Mosquitto
connection bridge-to-local