Module ngx_stream_mqtt_preread_module Join us for the first quarterly NGINX Community Call on July 22nd to connect and discuss NGINX development. english русский news about download security documentation faq books community enterprise community forum (new) x.com blog njs ingress controller gateway fabric Module ngx_stream_mqtt_preread_moduleExample Configuration Directives mqtt_preread Embedded Variables The ngx_stream_mqtt_preread_module module (1.23.4) allows extracting information from the CONNECT message of the Message Queuing Telemetry Transport protocol (MQTT) versions 3.1.1 and 5.0, for example, a username or a client ID. This module is available as part of our commercial subscription. Example Configuration mqtt_preread on; return $mqtt_preread_clientid; Directives Syntax: mqtt_preread on | off; Default: mqtt_preread off; Context: stream, server Enables extracting information from the MQTT CONNECT message at the preread phase. Embedded Variables $mqtt_preread_clientid the clientid value from the CONNECT message $mqtt_preread_username the username value from the CONNECT message