Configured mosquitto broker to listen on mqtt (1883) and mqtts (8883)
This commit is contained in:
parent
cbe45426ce
commit
073fb3d5c5
|
@ -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
|
||||
|
|
|
@ -19,7 +19,8 @@ services:
|
|||
- broker_data:/mosquitto/data
|
||||
- ./broker-config:/mosquitto/config
|
||||
ports:
|
||||
- 1883
|
||||
- "1883:1883"
|
||||
- "8883:8883"
|
||||
networks:
|
||||
- tor_net
|
||||
- broker_net
|
||||
|
|
Loading…
Reference in New Issue
Block a user