diff --git a/.gitignore b/.gitignore index 676c565..a888d46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target /_db +/server/config.toml diff --git a/server/config_example.toml b/server/config_example.toml new file mode 100644 index 0000000..35d55d2 --- /dev/null +++ b/server/config_example.toml @@ -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