mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
12 lines
410 B
Lua
12 lines
410 B
Lua
package.path = package.path .. "./?.lua;/usr/local/etc/haproxy/scripts/?.lua"
|
|
|
|
require("guard")
|
|
require("hcaptcha")
|
|
require("test")
|
|
|
|
|
|
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)
|
|
core.register_service("ratelimit", "http", test.ratelimit)
|