mirror of
https://github.com/ferdzo/iotDashboard.git
synced 2026-04-05 09:06:26 +00:00
30 lines
649 B
Plaintext
30 lines
649 B
Plaintext
# Persistence
|
|
persistence true
|
|
persistence_location /mosquitto/data/
|
|
|
|
# Logging
|
|
log_dest file /mosquitto/log/mosquitto.log
|
|
|
|
# Standard MQTT listener (for testing without certs)
|
|
listener 1883
|
|
allow_anonymous true
|
|
|
|
# mTLS listener (requires client certificates)
|
|
listener 8883
|
|
allow_anonymous true
|
|
protocol mqtt
|
|
|
|
# Server certificates (mosquitto's identity)
|
|
certfile /mosquitto/config/server.crt
|
|
keyfile /mosquitto/config/server.key
|
|
|
|
# CA certificate to verify client certificates
|
|
cafile /mosquitto/config/ca.crt
|
|
|
|
# Certificate-based authentication
|
|
require_certificate true
|
|
use_identity_as_username true
|
|
|
|
# TLS version restrictions
|
|
tls_version tlsv1.2
|