Commit Graph

17 Commits (4e0686f73cf89d29d19cd24d46386b770d194bbb)

Author SHA1 Message Date
Mickael cb5eae888d
Update dns_ispconfig.sh
Add permissions to:
- Client functions
- DNS zone functions
7 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
neilpang a3784854a7 fix https://github.com/acmesh-official/acme.sh/issues/3975 3 years ago
hyper_ch 40e7eca1ee dns_ispconfig: adding missing brackets 3 years ago
neilpang 01ace11293 Update dns_ispconfig.sh
fix https://github.com/acmesh-official/acme.sh/issues/3895#issuecomment-1035409954
3 years ago
Viktor G d32cedd7dc DNS-ISPConfig ISPC_Api_Insecure argument check fix 3 years ago
neil 289f79bbb0 fix format 4 years ago
pssara 464022bea2 Fixed issue with ISP config where the Client ID was asumed to be the same as the SYS User ID 4 years ago
neil 19c4345162 fix shfmt 5 years ago
Kordian Bruck 03a1386902
Update serial also when deleting the token 7 years ago
Kordian Bruck 676402d918
Increase serial when adding txt records 7 years ago
sjau a582e7c2fb dns_ispconfig.sh: remove unnecessary permission in api user 7 years ago
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>
8 years ago
klemens 329174b6d9 spelling fixes 8 years ago
sjau 5eed02f7e9 Changing shebang back to sh 8 years ago
sjau 983f1f28ca Fixed wrong zone getting JSON and added lots of debug info 8 years ago
sjau 192ede5e64 Added ISPConfig DNS API 8 years ago