Configured mosquitto broker to listen on mqtt (1883) and mqtts (8883)

master
B.J. Dweck 2020-10-22 19:17:25 +02:00
parent cbe45426ce
commit 073fb3d5c5
2 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,15 @@
listener 8883
websockets_log_level 9
connection_messages true
log_type all
websockets_log_level 9
listener 1883
cafile /mosquitto/config/ca.crt
#keyfile /mosquitto/config/mqtt.example.com.key
#certfile /mosquitto/config/mqtt.example.com.crt
require_certificate true
use_identity_as_username true
listener 8883
cafile /mosquitto/config/ca.crt
keyfile /mosquitto/config/mqtt.example.com.key
certfile /mosquitto/config/mqtt.example.com.crt

View File

@ -19,7 +19,8 @@ services:
- broker_data:/mosquitto/data
- ./broker-config:/mosquitto/config
ports:
- 1883
- "1883:1883"
- "8883:8883"
networks:
- tor_net
- broker_net