ngx_stream_mqtt_preread_module
少于1分钟
Module ngx_stream_mqtt_preread_module
https://nginx.org/en/docs/stream/ngx_stream_mqtt_preread_module.html
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
mqtt_preread
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_clientidthe
clientidvalue from the CONNECT message$mqtt_preread_usernamethe
usernamevalue from the CONNECT message
最后修改 August 15, 2023: 更新 (f1a8f0c)