Commit Graph

22 Commits

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>
2024-05-18 12:06:41 +03:00
Peter Dave Hello
3c933158c8 Use encrypted https instead of plain-text http when we can 2022-10-27 19:45:48 +08:00
Bob Belnap
444a0282d7 rename _error _err
When there are errors with namecheap hosts, acme.sh fails with:

dns_namecheap.sh: line 262: _error: command not found

Based on usage elsewhere in the file, I believe this should be _err
2022-05-31 11:41:22 -04:00
neil
3dbe5d872b fix format 2021-03-13 20:46:12 +08:00
neilpang
52cfb9a041 fix format 2021-03-04 21:50:54 +08:00
neilpang
3817ddef41 fix https://github.com/acmesh-official/acme.sh/issues/3019 2021-03-04 21:46:36 +08:00
dgasaway
f49e8ec5ad
Change ipconfig.co to ifconfig.co
URL https://ipconfig.co/ip does not currently work, and since https://ifconfig.co/ip is mentioned on the DNS API wiki page, I assume these messages were a typo.
2021-01-25 11:46:52 -08: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
Honza Hommer
28a9df669d Escape slashes (#2375) 2019-07-13 20:35:09 +08:00
Timothy Nelson
ec54074392 Fix verification for namecheap domains not *owned* by the calling user (#2106) 2019-02-25 19:19:36 +08:00
neilpang
43877d2647 fix rm method to urlencode the existing txt records.
fix https://github.com/Neilpang/acme.sh/issues/2052
2019-01-26 20:27:53 +08:00
neilpang
cc6159b39b urlencode the existing txt record value
fix https://github.com/Neilpang/acme.sh/issues/2052
2019-01-26 19:15:13 +08:00
jim-p
10ba2cd312 Use a literal space instead of an escaped space. Fixes #2022 2019-01-14 16:26:22 -05:00
LLeny
46b3a9158c Fixes Neilpang/acme.sh#1888 2018-10-21 18:17:23 +08:00
LLeny
3975792bf1 shfmt 2018-09-08 08:06:35 +08:00
LLeny
697e694de6 Indentation 2018-09-08 07:28:56 +08:00
LLeny
828d8eaadb NC API warning 2018-09-08 07:06:35 +08:00
LLeny
30ee00ff50 RM TXT check 2018-09-08 07:06:16 +08:00
LLeny
b859dd660c dns_rm support 2018-09-07 20:53:21 +08:00
LLeny
8868783476 Staging 2018-09-07 20:52:49 +08:00
LLeny
d813be1f48 WIP 2018-09-05 21:29:42 +08:00
LLeny
0d03309c2f Namecheap initial 2018-09-02 21:25:44 +08:00