See https://people.freebsd.org/~dch/posts/2026-10-08-haproxy-acme/ Modelled after https://github.com/haproxy/haproxy/blob/master/examples/lua/acme-gandi-livedns.lua
0
0
1
| 1 | -- ACME dns-01 automation via event_hdl callbacks using the Cloudflare DNS API |
| 2 | -- Requires HAProxy >= 3.5 (ACME_DEPLOY / ACME_NEWCERT lua events). |
| 3 | -- |
| 4 | -- Supports CNAME delegation: if a domain maps to a delegated FQDN (e.g. |
| 5 | -- _acme-challenge.example.net CNAME <key>.example.org), TXT records |
| 6 | -- are written to the delegated target instead. The API token then only |
| 7 | -- needs Zone:DNS:Edit on example.org, never on the primary zones. |
| 8 | -- |
| 9 | -- HAProxy Configuration: |
| 10 | -- |