Fully convert to data plane api

Change global ACL to a map to realtime update with data plane api
Change how on setartup servers are registered in lua
This commit is contained in:
Thomas Lynch
2023-02-18 15:13:40 +11:00
parent 9f95f1c9ac
commit 3cc7482084
13 changed files with 82 additions and 62 deletions

View File

@@ -0,0 +1,9 @@
package.path = package.path .. "./?.lua;/etc/haproxy/scripts/?.lua;/etc/haproxy/libs/?.lua"
local bot_check = require("bot-check")
core.register_service("bot-check", "http", bot_check.view)
core.register_action("captcha-check", { 'http-req', }, bot_check.check_captcha_status)
core.register_action("pow-check", { 'http-req', }, bot_check.check_pow_status)
core.register_action("decide-checks-necessary", { 'http-req', }, bot_check.decide_checks_necessary)
core.register_action("kill-tor-circuit", { 'http-req', }, bot_check.kill_tor_circuit)