haproxy/examples/lua
William Lallemand d2c9bf70e5 EXAMPLES: lua/acme: add a dns-01 handler for Gandi LiveDNS API
This Lua script automates dns-01 ACME challenges using the Gandi LiveDNS
API v5. It subscribes to the ACME_DEPLOY event to set the required
_acme-challenge TXT record via the Gandi REST API, signals HAProxy that
the challenge is ready using ACME.challenge_ready(), then cleans up the
TXT record once the certificate is issued on ACME_NEWCERT.

The API key is read from the GANDI_API_KEY environment variable at
startup. Zone discovery is automatic: the script probes parent zones
from longest to shortest until Gandi accepts the record, which handles
both apex and wildcard certificates transparently.
2026-06-11 19:37:49 +02:00
..
acme-gandi-livedns.lua EXAMPLES: lua/acme: add a dns-01 handler for Gandi LiveDNS API 2026-06-11 19:37:49 +02:00
event_handler.lua EXAMPLES: add basic event_hdl lua example script 2023-04-05 09:02:14 +02:00
mailers.lua MINOR: mailers: warn if mailers are configured but not actually used 2025-06-27 16:41:18 +02:00
README EXAMPLES: add basic event_hdl lua example script 2023-04-05 09:02:14 +02:00
trisdemo.lua BUG/MEDIUM: hlua: Fix receive API for TCP applets to properly handle shutdowns 2025-05-27 07:53:19 +02:00

These files are example lua scripts that can be customized
if necessary.

They can be loaded with the 'lua-load' keyword like this:

    lua-load /path/to/lua_script.lua