Commit Graph

29 Commits (master)

Author SHA1 Message Date
neil 9b2eae24d2 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
Aleksei Faians 83cb89e4f7 treat variable contents as text, don't process switches 4 years ago
neil 19c4345162 fix shfmt 5 years ago
喵喵喵喵四 4dfdfa0b7d
Fix typo on line 27 5 years ago
neil ee38cccad8
sync (#2436)
* fix https://github.com/Neilpang/acme.sh/issues/2409 (#2430)

* Add variable exports for Successful Post Hook and Renew Hook calls (#2431)

* fixed json parse regex for support api gcore_cdn (#2381)
6 years ago
evoadmin 4c1f70af4b
Update dns_he.sh
If you have a password with special char it will fail at Remove record
6 years ago
martgras 792f3775ce Fixes dns_he Issue #1476
username / password has to be urlencoded
7 years ago
martgras fe843bc466
dns_he - proposed fix for #1438
if you have more than one zone of a domain (e.g.  example.com and subdomain.example.com) _find_zone fails. 
This fix removes partials matches.
7 years ago
neilpang d064260bf1 fix https://github.com/Neilpang/acme.sh/issues/1315 7 years ago
neilpang 6d6b2efdb5 fix he for solaris 7 years ago
neilpang 2655e726c9 update dns he 7 years ago
fritteli 88bb7b780d Typos 8 years ago
Ondrej Simek 4dd69a8b1a Exit codes, exit codes... Exit codes everywhere... 8 years ago
Ondrej Simek baa1160594 Make Shellcheck happier about exit codes 8 years ago
Ondrej Simek f438ff4bab Fix an improbable corner case. 8 years ago
Ondrej Simek a25b2af66c Get rid of _find_num 8 years ago
Ondrej Simek 31b67ab92e Few non-critical fixes. 8 years ago
Ondrej Simek ccf9a9976c Fix the previous rushed commit. 8 years ago
Ondrej Simek d6780f9e49 Retain an exit code 8 years ago
Ondrej Simek 8534e3b2f7 Make shellcheck happier 8 years ago
Ondrej Simek 577380e98e Few fixes for shellcheck 8 years ago
Ondrej Simek 235b5b0c15 Small cosmetic fixes. 8 years ago
Ondrej Simek aefed1d1b9 Get rid of shell arrays. 8 years ago
Ondrej Simek 1546b7e5a9 Missing quotes 8 years ago
Ondrej Simek ff74778dea Fix few issues from Travis 8 years ago
Ondrej Simek f7299403f7 Incorporate Neilpang's comments 8 years ago
Ondrej Simek 4285d81ca9 Get rid of curl. 8 years ago
Ondrej Simek 7d64e141e4 Add dns_he - DNS API script for Hurricane Electric DNS service
... Although not yet fully Posix compatible.
8 years ago