This repository was archived by the owner on Dec 18, 2021. It is now read-only.
bedis/haproxy_mqtt_lua
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This repo is now deprecated since HAProxy 2.4 and above now have the same features natively integrated. Introduction ============ This repository contains a lua library to parse and retrieve information from a MQTT CONNECT message. It is intentionnaly written to be used with HAProxy and may be useless outside this scope. The code is split into 2 pieces: 1. mqtt.lua: contains the MQTT library itself 2. haproxy_mqtt.lua: creates native HAProxy features (converter, fetches, actions) that can be used in HAProxy's configuration for managing the MQTT CONNECT message Usage ===== * put both mqtt.lua and haproxy_mqtt.lua files in your /etc/haproxy folder or equivalent. * update your haproxy's configuration to match your requirements. See haproxy.cfg file, it contains some use cases