Files
haproxy-protection/scripts/register.lua
2021-06-08 20:17:16 +03:00

8 lines
333 B
Lua

package.path = package.path .. "./?.lua;/usr/local/etc/haproxy/scripts/?.lua"
require("guard")
require("hcaptcha")
core.register_service("hello-world", "http", guard.hello_world)
core.register_service("hcaptcha-view", "http", hcaptcha.view)
core.register_action("hcaptcha-redirect", { 'http-req', }, hcaptcha.check_captcha_status)