Commit Graph

37 Commits (4f96a2a6679a7093ef36b8746431d32dcd5e2253)

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
Jeremiah 5d881a8b0f use more compatible regex flag 5 years ago
Jeremiah c25b4ba099 dns_me id parse using only sed 5 years ago
Blfrg eb49127b9e
improve id parse
Locate only the outer most "id" property
5 years ago
Blfrg 8189a34d14
fix dns_me id parse
The API seems to have changed and the ID is no longer in the same location.
5 years ago
Peter Dave Hello ac9f6e3a41 Remove trailing spaces in text files
This issue in the shell scripts will also be detected in the stable
version of shfmt(we are currently using an ancient pre-release of shfmt)
5 years ago
nytral 3bc59a0327 first attempt to fix CI errors 7 years ago
nytral 5a883889a2 fixes 7 years ago
nytral e26f9b8095 DNSMadeEasy ACMEv2 support 7 years ago
nytral 8d53ec5353 fixed validation, added LUA while I'm at it 8 years ago
nytral a1e1bfc71b removed useless code 8 years ago
nytral 29992f54a3 delete support for dns_me 8 years ago
nytral e82ea94bb6 Merge remote-tracking branch 'upstream/master' 8 years ago
neilpang 1c22c2f76a fix for solaris 8 years ago
neilpang 542d7977db add new _url_encode 8 years ago
Bastian Bittorf 3ca93f4a4c shellcheck: fix several occurences of SC2034
message:
SC2034: $VARNAME appears unused. Verify it or export it.

most of these are related to the style:
we generate global vars, which are used in other functions.

the var "lexical_url" was really unused (left it as comment)

the travis-check now does not need anymore special flags.

Signed-off-by: Bastian Bittorf <bb@npl.de>
8 years ago
Kevin Kaland 3cf85634eb Trim potential closing curly brace.
Fixes GH-517.
8 years ago
klemens 329174b6d9 spelling fixes 8 years ago
neilpang e009ec8b93 Support AWS Route53 api 8 years ago
nytral a9b15f1c36 Merge remote-tracking branch 'upstream/master' 8 years ago
neilpang 422e5026d6 fix shellcheck warnings 8 years ago
neilpang e440223b40 fix shellcheck warnings 8 years ago
neilpang e9f9f515bd fix shellcheck warnings. 8 years ago
neilpang c7b16249b8 fix shellcheck warnings 8 years ago
nytral 764963e986 sync upstream 8 years ago
neilpang dec90f7e5e format dns_me api 8 years ago
nytral 2ea5b283a8 _hmac use and generic date 8 years ago
nytral eb23549cd6 s/bash/sh/ 8 years ago
nytral cd90062850 better bugfix 8 years ago
nytral 3ec72fcee9 bugfix 8 years ago
nytral b9091e14b3 adding DNSMadeEasy API 8 years ago
nytral 22b83d7630 _hmac use and generic date 8 years ago
nytral 0b5bff01e1 s/bash/sh/ 8 years ago
nytral 4fe7b6cd65 better bugfix 8 years ago
nytral 49e1f7d8bf bugfix 8 years ago
nytral 803fb243bf adding DNSMadeEasy API 8 years ago