Commit Graph

13 Commits

Author SHA1 Message Date
Sergey Ponomarev
6b7b5caf54 DNS provider API: structured description
Instead of using comments declare info in a special variable.
Then the variable can be used to print the DNS API provider usage.
The usage can be parsed on UI and show all needed inputs for options.

The info is stored in plain string that it's both human-readable and easy to parse:

    dns_example_info='API name
     An extended description.
     Multiline.
    Domains: list of alternative domains to find
    Site: the dns provider website e.g. example.com
    Docs: Link to ACME.sh wiki for the provider
    Options:
     VARIABLE1 Title for the option1.
     VARIABLE2 Title for the option2. Default "default value".
     VARIABLE3 Title for the option3. Description to show on UI. Optional.
    Issues: Link to a support ticket on https://github.com/acmesh-official/acme.sh
    Author: First Lastname <authoremail@example.com>, Another Author <https://github.com/example>;
    '

Here:
VARIABLE1 will be required.
VARIABLE2 will be required too but will be populated with a "default value".
VARIABLE3 is optional and can be empty.

A DNS provider may have alternative options like CloudFlare may use API KEY or API Token.
You can use a second section OptionsAlt: section.

Some providers may have alternative names or domains e.g. Aliyun and AlibabaCloud.
Add them to Domains: section.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-05-18 12:06:41 +03:00
Philipp B
1064c270d9
Fix variable name
Wrong variable name was used in login() and logout(), preventing operation.
2021-09-06 17:01:31 +02:00
neil
09bce5e6d6
sync (#2297)
* Create LICENSE.md

* remove _hostingde_parse_no_strip_whitespace function as this breaks API requests

* Fix sessionid parsing on BSD

* Make travis happy. (SC2020)

* fix for https://github.com/Neilpang/acme.sh/issues/2286

* Notify mail update (#2293)

* feat: disable e-mail validation if MAIL_NOVALIDATE is set

* fix: expose _MAIL_BIN variable

* fix: call _mail_body and _mail_cmnd directly to make sure that all used variables are exposed

* fix: update notify/mail.sh

Co-Authored-By: Matej Mihevc <zuexo@users.noreply.github.com>

* fix: remove useless echo, quote eval
2019-05-28 08:47:33 +08:00
neilpang
c74d597c84 add debug info 2019-03-16 18:34:44 +08:00
linux-insideDE
4fffb3c816
make shfmt happy 2018-08-21 21:55:44 +02:00
linux-insideDE
840b3a34cb
changed some chars 2018-08-21 21:47:40 +02:00
linux-insideDE
69b780ee32
Update dns_netcup.sh 2018-05-29 17:24:53 +02:00
linux-insideDE
c7b904501c
make shfmt happy 2018-05-29 16:56:07 +02:00
linux-insideDE
48e8022095
improved handling for third level domains 2018-05-29 16:23:28 +02:00
linux-insideDE
4715a1a5e0
satisfy shellcheck 2018-05-16 22:07:44 +02:00
linux-insideDE
ca1d62bec0
removed jq dependencies 2018-05-15 16:21:57 +02:00
linux-insideDE
6a4aad1aa8
replaced increment/decrement with _math function 2018-05-15 14:38:29 +02:00
linux-insideDE
e9782c3219
Create dns_netcup.sh 2018-05-15 13:18:50 +02:00