mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-14 03:10:43 -04:00
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. |
||
|---|---|---|
| .. | ||
| acme-gandi-livedns.lua | ||
| event_handler.lua | ||
| mailers.lua | ||
| README | ||
| trisdemo.lua | ||
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