Commit Graph

26 Commits (master)

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>
9 months ago
Bjarke Bruun 5c00afc6fe Fix for multiple TLDs in DNS API 2 years ago
Bjarke Bruun bcc9679339 Removed spaces (shfmt) (missed one) 3 years ago
Bjarke Bruun e5aeff50dc Removed spaces (shfmt) 3 years ago
Bjarke Bruun 5f44c195e9 Removed unused variable 3 years ago
Bjarke Bruun e4387e4aad Updated delete function 3 years ago
Bjarke Bruun b1b336804d Fixed a missed 'grep -o' to _egrep_o() 3 years ago
Bjarke Bruun ae71a5abf6 Added debug for API result 3 years ago
Bjarke Bruun df199c5788 Updated API call for OpenBSD sed and tr as newlines does not work there 3 years ago
Bjarke Bruun c1ba4f1b55 Added forced _log to debug deletion of records in GH Actions 3 years ago
Bjarke Bruun 80d30bdd30 Removed empty new line to trigger workflow 3 years ago
Bjarke Bruun 5ff0957861 Added empty new line to trigger workflow 3 years ago
Bjarke Bruun c8d17bc363 Re-commit (removed non-needed #'tag) 3 years ago
Bjarke Bruun 1b3e1a7abe Changed 'grep -E' to '_egrep_o' 'removed ()' 3 years ago
Bjarke Bruun 0afabc60ae Changed 'grep -E' to '_egrep_o' 3 years ago
Bjarke Bruun eba788e8c9 Removed check for _acme-challenge and acmetestXyzRandomName.github-test sub-domain 3 years ago
Bjarke Bruun 444b111a62 Fixed acmetest for domain acmetestXyzRandomName.github-test.<domain> that was explicitly disallowed as it is not _acme-challenge 3 years ago
Bjarke Bruun a364ab4ea7 Added '.' to 'DNS Services' as that is the correct provider name 3 years ago
Bjarke Bruun 543c4423a2 Added bug report link to dns_dnsservices.sh 3 years ago
Bjarke Bruun 3bd4d32b8d Updated bug report URL 3 years ago
Bjarke Bruun 56a686d3e0 Code formatting (shfmt) 3 years ago
Bjarke Bruun 2f97c789dd Code formatting (shellcheck/shfmt) 3 years ago
Bjarke Bruun 04ca808e80 Code formatting (shfmt) 3 years ago
Bjarke Bruun dc882e6279 Removed empty space 3 years ago
Bjarke Bruun d6eebf82be Removed a few empty lines 3 years ago
Bjarke Bruun 688a234127 Added new 'dns' provider script for https://dns.services 3 years ago