Amritanshu
774b69be38
File and folder permissions are a bitch. Also, will only leave access to grafana and remove the rest to be accessed using ssh tunnels
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Use a persistence location outside the container
|
|
persistence true
|
|
persistence_location /mosquitto/data
|
|
|
|
# Set the maximum number of clients and messages
|
|
max_connections 1000
|
|
max_inflight_messages 1000
|
|
|
|
# Set the maximum size of incoming messages
|
|
max_queued_messages 10000
|
|
max_packet_size 1000
|
|
|
|
# Enable MQTT logging
|
|
log_dest file /mosquitto/log/mosquitto.log
|
|
log_type error
|
|
log_type warning
|
|
log_type notice
|
|
log_type information
|
|
|
|
# Disable anonymous access
|
|
allow_anonymous false
|
|
|
|
# Set a username and password for client authentication
|
|
password_file /mosquitto/config/passwd
|
|
|
|
# Uncomment the following lines if you want to enable TLS/SSL encryption
|
|
# cafile /mosquitto/config/ca.crt
|
|
# certfile /mosquitto/config/server.crt
|
|
# keyfile /mosquitto/config/server.key
|
|
# require_certificate true
|
|
|
|
# Uncomment the following lines if you want to enable WebSocket support
|
|
listener 9001
|
|
protocol websockets
|
|
|
|
# Uncomment the following lines if you want to enable MQTT over TLS/SSL
|
|
# listener 8883
|
|
# cafile /mosquitto/config/ca.crt
|
|
# certfile /mosquitto/config/server.crt
|
|
# keyfile /mosquitto/config/server.key |