Commit Graph

24 Commits (f981c782bb38015f4778913e9c3db26b57dde4e8)

Author SHA1 Message Date
neil 9b2eae24d2 fix format 4 months ago
Felix Schmidt dd582c0306 Changed the direct call of `tr` to cast to lower case to the function
`_lower_case` which is already provided.
6 months ago
Felix Schmidt ab86e056a2 Changed A-Z and a-z to [:upper:] and [:lower:] from last commit to comply with requested standards.
This does not change any functionality in this special case but the
request for [:upper:] and [:lower:] makes a lot of sense in general.
7 months ago
Felix Schmidt a2bc79ddd5 Fixed a bug where trying to add entries where the fulldomain contains upper case characters would not be accepted (dynv6 API rejects those).
Now the fulldomain will be cast to lowercase first which should not make
any difference since DNS is case insensitive.
7 months ago
IIIPr0t0typ3III 5789e80d74
Fixed a bug where the zone_id was corrupted for domains containing the string 'id' dns_dynv6.sh
This will now search for `"id:"` instead of `id` and therefore will only find the id field and not any other field containing the sub-string 'id'
7 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
neil e275cb1efd fix shellcheck warnings 2 years ago
neil 60315e5b91 fix shellcheck warnings 2 years ago
StefanAbl 4242354c03 fix shfmt error 4 years ago
StefanAbl 8728389c88 formatting 4 years ago
StefanAbl 6651801b3f formatting 4 years ago
StefanAbl 9190ce3701 no supporting HTTP API as well 4 years ago
StefanAbl 90e2064d72 first attempt to make travis happy 4 years ago
StefanAbl 943d419f98 Added support for custom domains 4 years ago
StefanAbl 551316bcb6 formatting 4 years ago
StefanAbl 9dd5089940 formatting 4 years ago
StefanAbl 06e7ebbdeb no supporting HTTP API as well 4 years ago
StefanAbl a83b16e12a first attempt to make travis happy 4 years ago
StefanAbl 91a8b97cf4 Added support for custom domains 4 years ago
neil 70b49980cb fix format 5 years ago
12bbf7608ae1 4b35aef728
Update dns_dynv6.sh
Add support for domains like '*.v6.rocks'
5 years ago
Tony Gravagno eca57beec1
Issue #2850 : grammar corrections for "exists" and "exist". 5 years ago
StefanAbl 6e3ba3ca45 travis 5 years ago
StefanAbl 0f54cf83f4 fixed dynv6 dns validation 5 years ago