The ngx_stream_mqtt_filter_module
module (1.23.4) provides support for Message Queuing Telemetry Transport protocol (MQTT) versions 3.1.1 and 5.0.
This module is available as part of our commercial subscription.Example Configuration
Directives Syntax:listen 127.0.0.1:18883; proxy_pass backend; proxy_buffer_size 16k; mqtt on; mqtt_set_connect clientid "$client"; mqtt_set_connect username "$name";
mqtt on
| off
;
mqtt off;Context:
stream
, server
Enables the MQTT protocol for the given virtual server.
Syntax:mqtt_buffers number
size
;
mqtt_buffers 100 1k;Context:
stream
, server
This directive appeared in version 1.25.1.
Sets the number
and size
of the buffers used for handling MQTT messages, for a single connection.
mqtt_rewrite_buffer_size size
;
mqtt_rewrite_buffer_size 4k|8k;Context:
server
This directive is obsolete since version 1.25.1. The mqtt_buffers directive should be used instead.
Sets the size
of the buffer used for writing a modified message. By default, the buffer size is equal to one memory page. This is either 4K or 8K, depending on a platform. It can be made smaller, however.
mqtt_set_connect field
value
;
server
Sets the message field
to the given value
for CONNECT message. The following fields are supported: clientid
, username
, and password
. The value can contain text, variables, and their combination.
Several mqtt_set_connect
directives can be specified on the same level:
mqtt_set_connect clientid "$client"; mqtt_set_connect username "$name";
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4