Skip to content
Sample code demonstrating how to extend HAProxy using Lua.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
action/ipchecker Initial commit Apr 24, 2019
converter/urlencode Initial commit Apr 24, 2019
fetch/least_sessions Changed least_session.lua to not use a table to be more efficient, pe… May 24, 2019
service/magic8ball Initial commit Apr 24, 2019
task/log_work Initial commit Apr 24, 2019
LICENSE
README.md Initial commit Apr 24, 2019

README.md

HAProxy Lua Samples

Examples of extending HAProxy using Lua. These extension points are available:

  • Actions
  • Converters
  • Fetches
  • Services
  • Tasks

Usage

Check that you have Lua compiled into HAProxy:

$ haproxy -vv | grep Lua
Built with Lua version : Lua 5.3.5

Copy each sample into /etc/haproxy and update your haproxy.cfg file. Use the lua-load directive in your configuration to include a Lua file.

You can’t perform that action at this time.