Commit Graph

14 Commits

Author SHA1 Message Date
neil
9b2eae24d2 fix format 2024-10-13 17:49:29 +02:00
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
Shane Bishop
dcc9624c15 Update dns_dgon.sh
Make sure to initialize 'found' so that it isn't contaminated from previous commands/requests.
2022-09-07 15:37:49 -06:00
Shane Bishop
b3df1a2bf8 'i' should start with 1
Since domain alias mode won't have the '_acme-challenge' prefix.
2022-09-07 13:42:30 -06:00
Viktor Szépe
14089f8c6a
Fix SC2236 2020-07-16 06:18:12 +02:00
Tony Gravagno
eca57beec1
Issue #2850 : grammar corrections for "exists" and "exist". 2020-06-29 11:29:10 -07:00
Charles Surett
189a7766d4
Made dns_dgon.sh use _lower_case
Fixed private function which breaks on embedded systems before.
2019-03-22 18:43:06 -04:00
Tom Blauwendraat
4a18c45e4f fixup! [FIX] Delete all occurrences of TXT key, dont fail if there is more than one, [FIX] Respect pagination on domain listing, before only the first page was loaded 2018-09-12 05:46:51 +02:00
Tom Blauwendraat
5b7cac1002 [FIX] Delete all occurrences of TXT key, dont fail if there is more than one, [FIX] Respect pagination on domain listing, before only the first page was loaded 2018-09-12 05:34:56 +02:00
MaomiHz
c1f8ffa386 Use [0-9] instead 2018-01-17 21:39:13 -06:00
MaomiHz
9c4f7aa688 check for env var exist in DigitalOcean API 2017-12-11 16:33:44 -06:00
MaomiHz
e75b56073b Fix digitalocean api not remove record 2017-12-11 16:33:42 -06:00
Josh Soref
849bed4bef spelling: requires 2017-03-26 05:30:03 +00:00
thewer
ac690fceaf Added DigitalOcean (native) API that requires only a read/write API key for DigitalOcean, updated 2 reads files. 2017-03-09 22:28:30 +10:00