Commit Graph

17 Commits (157d3f9dc9b8afaec83ec0219dd9da1c9fbeab66)

Author SHA1 Message Date
neil 7362e8de4d fix format 4 months ago
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>
9 months ago
Tom Sommer f60356e8c7
Username not required to contain "UE" 5 years ago
Tom Sommer cdf8f78962
unoeuro.com is now simply.com
Maintaining the naming of the API (for backwards compatibility), but renaming hostname.
5 years ago
Gustav Genberg 0ffd5de6fc
Fix add record error 5 years ago
Aarup 8b6986ba18 Fix file formatting 7 years ago
Aarup 8113548920 Update dns api to support v2 wildcard cert #1261 7 years ago
Aarup f9b8d7a9d8 renamed uno_user and uno_key 7 years ago
Aarup f763e1edd7 fix contains usage 7 years ago
Aarup dbc3ad1304 use _math 7 years ago
Aarup 3f1e6c128f Try again 7 years ago
Aarup 1f635b90e7 Try to fix build 7 years ago
JAA db3043553c Also don't use sed 7 years ago
JAA b91c0a0616 Don't use grep -B 7 years ago
JAA 4a9f607d31 Cleanup 7 years ago
Aarup 70702e41e9 Use _head_n 7 years ago
Aarup 0ca3141088 Added support for UnoEuro api 7 years ago