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
|
connection_messages true
|
||||||
log_type all
|
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
|
cafile /mosquitto/config/ca.crt
|
||||||
keyfile /mosquitto/config/mqtt.example.com.key
|
keyfile /mosquitto/config/mqtt.example.com.key
|
||||||
certfile /mosquitto/config/mqtt.example.com.crt
|
certfile /mosquitto/config/mqtt.example.com.crt
|
||||||
|
|
|
@ -19,7 +19,8 @@ services:
|
||||||
- broker_data:/mosquitto/data
|
- broker_data:/mosquitto/data
|
||||||
- ./broker-config:/mosquitto/config
|
- ./broker-config:/mosquitto/config
|
||||||
ports:
|
ports:
|
||||||
- 1883
|
- "1883:1883"
|
||||||
|
- "8883:8883"
|
||||||
networks:
|
networks:
|
||||||
- tor_net
|
- tor_net
|
||||||
- broker_net
|
- broker_net
|
||||||
|
|
Loading…
Reference in New Issue
Block a user