Commit Graph

37 Commits

Author SHA1 Message Date
neil
7362e8de4d fix format 2024-10-13 17:41:22 +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
Jeremiah
5d881a8b0f use more compatible regex flag 2020-03-09 11:34:50 -06:00
Jeremiah
c25b4ba099 dns_me id parse using only sed 2020-03-08 15:39:18 -06:00
Blfrg
eb49127b9e
improve id parse
Locate only the outer most "id" property
2020-02-09 14:50:29 -06:00
Blfrg
8189a34d14
fix dns_me id parse
The API seems to have changed and the ID is no longer in the same location.
2020-02-08 16:43:23 -06:00
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)
2019-10-05 21:09:24 +08:00
nytral
3bc59a0327 first attempt to fix CI errors 2018-02-26 21:47:51 +01:00
nytral
5a883889a2 fixes 2018-02-26 14:53:31 +01:00
nytral
e26f9b8095 DNSMadeEasy ACMEv2 support 2018-02-24 09:08:44 +01:00
nytral
8d53ec5353 fixed validation, added LUA while I'm at it 2017-03-01 19:38:02 +01:00
nytral
a1e1bfc71b removed useless code 2017-03-01 19:20:16 +01:00
nytral
29992f54a3 delete support for dns_me 2017-03-01 18:28:39 +01:00
nytral
e82ea94bb6 Merge remote-tracking branch 'upstream/master' 2017-02-05 13:56:10 +01:00
neilpang
1c22c2f76a fix for solaris 2017-01-31 14:04:40 +08:00
neilpang
542d7977db add new _url_encode 2017-01-30 12:07:50 +08:00
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>
2017-01-13 14:54:09 +01:00
Kevin Kaland
3cf85634eb Trim potential closing curly brace.
Fixes GH-517.
2017-01-08 00:10:22 +01:00
klemens
329174b6d9 spelling fixes 2016-12-14 21:32:24 +01:00
neilpang
e009ec8b93 Support AWS Route53 api 2016-11-20 22:57:07 +08:00
nytral
a9b15f1c36 Merge remote-tracking branch 'upstream/master' 2016-11-14 22:06:58 +01:00
neilpang
422e5026d6 fix shellcheck warnings 2016-11-12 11:13:40 +08:00
neilpang
e440223b40 fix shellcheck warnings 2016-11-12 00:50:44 +08:00
neilpang
e9f9f515bd fix shellcheck warnings. 2016-11-12 00:06:34 +08:00
neilpang
c7b16249b8 fix shellcheck warnings 2016-11-11 23:30:14 +08:00
nytral
764963e986 sync upstream 2016-11-09 16:25:24 +01:00
neilpang
dec90f7e5e format dns_me api 2016-11-09 23:15:08 +08:00
nytral
2ea5b283a8 _hmac use and generic date 2016-11-09 23:11:20 +08:00
nytral
eb23549cd6 s/bash/sh/ 2016-11-09 23:11:19 +08:00
nytral
cd90062850 better bugfix 2016-11-09 23:11:19 +08:00
nytral
3ec72fcee9 bugfix 2016-11-09 23:11:19 +08:00
nytral
b9091e14b3 adding DNSMadeEasy API 2016-11-09 23:11:19 +08:00
nytral
22b83d7630 _hmac use and generic date 2016-11-08 15:56:46 +01:00
nytral
0b5bff01e1 s/bash/sh/ 2016-11-08 14:13:05 +01:00
nytral
4fe7b6cd65 better bugfix 2016-11-07 22:16:53 +01:00
nytral
49e1f7d8bf bugfix 2016-11-07 22:16:00 +01:00
nytral
803fb243bf adding DNSMadeEasy API 2016-11-07 21:50:59 +01:00