From bc807f9c7bf8b922b668c924df301b0aa0898944 Mon Sep 17 00:00:00 2001 From: Laurent Ollagnier Date: Sun, 16 Nov 2025 18:54:14 +0100 Subject: [PATCH] (feat) VContainers : Fichier de configuration pour nanomq --- VContainers/MQTT/config/nanomq.conf | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 VContainers/MQTT/config/nanomq.conf diff --git a/VContainers/MQTT/config/nanomq.conf b/VContainers/MQTT/config/nanomq.conf new file mode 100644 index 00000000..4d55b5e7 --- /dev/null +++ b/VContainers/MQTT/config/nanomq.conf @@ -0,0 +1,60 @@ +# NanoMQ Configuration 0.18.0 + +# #============================================================ +# # NanoMQ Broker +# #============================================================ + +mqtt { + property_size = 32 + max_packet_size = 260MB + max_mqueue_len = 2048 + retry_interval = 10s + keepalive_multiplier = 1.25 + + # Three of below, unsupported now + max_inflight_window = 2048 + max_awaiting_rel = 10s + await_rel_timeout = 10s +} + +listeners.tcp { + bind = "127.0.0.1:1883" +} + +listeners.ws { + bind = "127.0.0.1:9001" +} + +http_server { + port = 8081 + limit_conn = 2 + username = admin + password = public + auth_type = basic + jwt { + public.keyfile = "/etc/certs/jwt/jwtRS256.key.pub" + } +} + +log { +# to = [file, console] + to = [console] + level = warn + dir = "/tmp" + file = "nanomq.log" + rotation { + size = 10MB + count = 5 + } +} + +auth { + allow_anonymous = true + no_match = allow + deny_action = ignore + + cache = { + max_size = 32 + ttl = 1m + } +}