luci-app-acme: render DNS API fields from the Structured Info
authorSergey Ponomarev <[email protected]>
Mon, 7 Jul 2025 17:28:34 +0000 (20:28 +0300)
committerToke Høiland-Jørgensen <[email protected]>
Mon, 8 Sep 2025 08:29:48 +0000 (10:29 +0200)
commit6a36e9ac5014d77649a5581f9c588069b72d43d5
tree73ed1f38e192157ce1ddca3b77373ea807e8147b
parent0a1bb36532dc42a65092b8090d5b58780ed0ad55
luci-app-acme: render DNS API fields from the Structured Info

The ACME.sh DNS API scripts have a description of their options.
Now we can parse them and render all necessary fields for a specific DNS API.
When a user changes the DNS API specific options, their value is copied into the Credentials list, thus keeping backward compatibility.
Some DNS APIs like CloudFlare or Selectel have alternative options (usually API v2).
To see the Alternative credentials, a user should click on the Alt Options flag.

Signed-off-by: Sergey Ponomarev <[email protected]>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
applications/luci-app-acme/htdocs/luci-static/resources/view/dnsapi.js [new file with mode: 0644]
applications/luci-app-acme/root/usr/libexec/acmesh-dnsinfo.sh [new file with mode: 0755]
applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json