Commit Graph

36 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
neil
19c4345162 fix shfmt 2020-08-17 22:18:20 +08:00
neilpang
d795fac37a update repo name 2020-01-30 12:06:39 +08:00
neilpang
2a28772312 fix https://github.com/Neilpang/acme.sh/pull/2553#issuecomment-546173277 2019-10-25 22:34:33 +08:00
neil
18ad01533b add space.
fix https://github.com/Neilpang/acme.sh/pull/2553
2019-10-24 09:19:18 +08:00
David Robles
573c8f3b13 Use more widely supported options for the "tr" command line utility by removing the use of the character class representation option. [:space:] => "\t\r\n\v\f" 2019-10-23 07:20:01 -07:00
neil
d035cdcff9
Merge pull request #2537 from master-nevi/master
Use more widely supported options for the "tr" command line utility in dns_freedns.sh
2019-10-10 10:38:17 +08:00
neil
38e08bb91f
Merge pull request #2434 from dkerr64/FreeDNS
Work around bug in _egrep_o() function
2019-10-10 10:34:26 +08:00
David Robles
ba7db3edda Use more widely supported options for the "tr" command line utility by removing the use of the character class representation option. Fixes #2536 2019-10-09 08:24:24 -07: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
David Kerr
0b2b8b960b
Replace grep -o with sed 2019-08-16 22:56:22 -04:00
David Kerr
2ce9fb9760
Work around bug in _egrep_o() function
_egrep_o() function accepts extended regex and on systems that do not have egrep uses sed to emulate egrep.
This is failing on the specific regex I was using before my last commit... ae66c6f0b4
The problem is that I fixed it by passing in non-extended regex which then fails on systems that do have egrep.  So I am no longer using _egrep_o.
2019-07-11 18:06:56 -04:00
David Kerr
ae66c6f0b4
Fix bug (in egrep regex) reported by @maks2018 in issue 2305
Fix bug reported by @maks2018 in issue https://github.com/Neilpang/acme.sh/issues/2305 by updating the regex in egrep of the subdomain html page.
2019-07-11 15:46:17 -04:00
David Kerr
924e0261f9
Update dns_freedns.sh 2019-06-02 13:09:57 -04:00
David Kerr
2cb0b00e3a
replace _read_conf() with _readaccountconf() 2019-05-23 18:11:25 -04:00
David Kerr
10994d65be Even blank lines (with spaces) give Travis heartache. Sigh. 2019-05-22 23:01:23 -04:00
David Kerr
a18ce275ab Another Travis CI warning fixed. 2019-05-22 22:54:56 -04:00
David Kerr
66c39a953a Fix warnings from Travis build 2019-05-22 22:50:26 -04:00
David Kerr
09fb9dcd92 Fix bug preventing multipart TLD names to work. And simplify/cleanup the code. 2019-05-22 22:16:46 -04:00
Chris Gårdenberg
912bcf9487
Fixed HTTPS-url with regard to #1192 2018-03-19 11:15:25 +01:00
David Kerr
62dd3a5380 Fix Travis CI errors. 2018-03-09 16:54:42 -05:00
David Kerr
e3ddb677e1 Adding support for API v2 (multiple TXT records) 2018-03-09 16:39:08 -05:00
neilpang
dcf8457f4d fix format 2017-12-03 13:16:37 +08:00
neilpang
ceafe389af fix https://github.com/Neilpang/acme.sh/issues/1109 2017-11-26 20:57:02 +08:00
neil
3c07f57aad minor remove spaces 2017-04-17 19:08:34 +08:00
Josh Soref
7f32488b78 spelling: subdomain 2017-03-26 05:31:35 +00:00
Josh Soref
00777a10ae spelling: security 2017-03-26 05:30:43 +00:00
Josh Soref
997c517ba2 spelling: return 2017-03-26 05:30:15 +00:00
Josh Soref
d39b108274 spelling: function 2017-03-26 05:27:04 +00:00
Josh Soref
39f3239682 spelling: following 2017-03-26 05:26:55 +00:00
Josh Soref
9b2aa974ba spelling: changed 2017-03-26 05:25:31 +00:00
Josh Soref
291c97dc81 spelling: challenge 2017-03-26 05:25:04 +00:00
David Kerr
87f5ec5be5 Add Accept-Language:en-US to HTTP header as precaution against future multi-lingual FreeDNS pages. 2017-02-04 10:36:51 -05:00
David Kerr
f78b656f5f Add error message if fails to add TXT record for missing security code (probably a FreeDNS public domain) 2017-02-04 10:21:58 -05:00
David Kerr
50a9680f17 Travis error... remove blank line at end of file. 2017-02-03 11:13:12 -05:00
David Kerr
600a235140 Add FreeDNS plugin 2017-01-31 23:16:04 -05:00