feat: added captcha serving service to haproxy

This commit is contained in:
Eugene Prodan
2021-06-07 23:44:39 +03:00
parent 1dff57f048
commit 0fde9b873b
7 changed files with 1656 additions and 3 deletions

View File

@ -1,5 +1,7 @@
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("hello-world", "http", guard.hello_world)
core.register_service("hcaptcha-view", "http", hcaptcha.view)