replace config with example

This commit is contained in:
csehviktor
2025-07-06 03:35:19 +02:00
parent 6267733086
commit f08b4067ae
2 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target
/_db
/server/config.toml

View File

@@ -0,0 +1,24 @@
[storage]
sqlite = false # if set to false, broker will use memory (not optimal for production)
db_path = "_db/"
[mqtt]
id = 0
[mqtt.router]
id = 0
max_connections = 10010
max_outgoing_packet_count = 200
max_segment_size = 104857600
max_segment_count = 10
[mqtt.v4.1]
name = "v4-1"
listen = "0.0.0.0:1883"
next_connection_delay_ms = 1
[mqtt.v4.1.connections]
connection_timeout_ms = 60000
max_payload_size = 20480
max_inflight_count = 100
dynamic_filters = true