Commit Graph

18 Commits (f981c782bb38015f4778913e9c3db26b57dde4e8)

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
Nikolaj Brinch Jørgensen 227d62a5dc Fixes Simply.com to use REST API version 2 with Basic Auth 3 years ago
Jacob Vandborg e23c02575d
Removed DNS sleep
Users should use command line parameter --dnssleep instead
3 years ago
jvandborg 459faf4dfb Format to comply with style guide 3 years ago
Jacob Vandborg 8cdceb83b2
Cannot wait for PR #3673 to be completed
PR #3673 Fix simply.com API seems abandoned by maintainer and I need this fixed asap

Changes implemented
* Normalize JSON and fix not handling return code correctly
* Add some information to comments
* Fix trailing slash on URIs
* Add 60 second sleep for zone to be written
* Fix parsing record_data and record_type
3 years ago
Kristian Johansson 1917c4b04a Adds comment 4 years ago
Kristian Johansson c5100219d1 Fixes response handling and thereby allow issuing of subdomain certs 4 years ago
jakelamotta 69bdbaed41 Fix comment 4 years ago
jakelamotta 30f359e642 Fix code style problems 4 years ago
jakelamotta 29d0a1714e Fix code style problems 4 years ago
jakelamotta fcb97f802f Removes tabs and trailing spaces 4 years ago
jakelamotta 9ad05e640d Removed spaces on empty lines 4 years ago
jakelamotta 449f00f960 Add double quotes to variables 4 years ago
jakelamotta 8e64329d05 Fix CI-errors 4 years ago
jakelamotta 4284777556 Fix indentation and added some debug messages 4 years ago
jakelamotta 81c496d96c Fix comments 4 years ago
jakelamotta 65c06da275 Adds dnsapi support for Simply.com 4 years ago