Debian Codegraph @

autopaho/examples/docker/binds/mosquitto/config/mosquitto.conf

raw
1 # Config file for mosquitto
2 #
3 # See mosquitto.conf(5) for more information.
4 #
5 # This is a very basic configuration (no security etc - do not use in production!)
6 # If you are using this to replicate a bug please copy your own configuration in here (changing folders as necessary)
7
8 allow_anonymous true # Anyone can connect
9
10 # Mosquitto v2+ requires that a listener be defined (otherwise it listens on loopback)
11 listener 1883
12
13 # Also allow websocket connections over port 80
14 listener 8080
15 protocol websockets
16
17 #log_type error
18 #log_type warning
19 #log_type notice
20 #log_type information
21 log_type all
22
23 # Log to the console (visible using `docker-compose logs`). To log to a file uncomment the line below
24 log_dest stdout
25 #log_dest file /mosquitto/log/mosquitto.log
26
27 # Log entries are easier to read with an ISO 8601 timestamp
28 log_timestamp true
29 log_timestamp_format %Y-%m-%dT%H:%M:%S
30
31 # For demonstration purposes we will not store messages to disk (the appropriate value depends upon what you are testing)
32 # Note: If enabled then you will probably want to add a bind to the docker-compose.yml so the persistence_file is retained.
33 #persistence false
34
35 #persistence true
36 #autosave_interval 20
37 #persistence_location /mosquitto/data/
38 #persistence_file mosquitto.db
39
40 # The maximum number of QoS 1 and 2 messages to hold in a queue per client
41 # above those that are currently in-flight. Defaults to 100. Set
42 # to 0 for no maximum (not recommended).
43 # We do set this to 0 for testing because the default is may result in lost messages if there are a lot of
44 # messages waiting when the connection is re-established (they will all be sent immediately). This should not be
45 # 0 on a production system (but the value chosen should take into account likely queue sizes and bandwidth)
46 max_queued_messages 0
47
48