Skip to content

Instantly share code, notes, and snippets.

View vasso123's full-sized avatar

Vanja Keglević vasso123

View GitHub Profile
@vasso123
vasso123 / auth-request.lua
Created November 8, 2023 23:10
Lua HAProxy example
local http = require("http")
core.register_action("auth-request", { "tcp-req", "http-req" }, function(txn)
auth_request(txn)
end, 0)
function set_var_pre_2_2(txn, var, value)
return txn:set_var(var, value)
end
function set_var_post_2_2(txn, var, value)