Commit Graph

29 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
Hobby-Student
dea8a08b64
added missing new line at EOF 2023-03-06 20:36:53 +01:00
Hobby-Student
dde1bab1a8
improve deletion of records 2023-03-06 20:18:15 +01:00
Hobby-Student
f9c2874c35
removed unnecessary white space in empty line 2022-08-23 13:30:04 +02:00
Hobby-Student
2304f005e3
better error handling 2022-08-23 12:41:42 +02:00
Hobby-Student
b42532afe9
forgot enabling github actions. forced commit 2022-08-17 19:58:34 +02:00
Hobby-Student
da6a335b87
new line EOF 2022-08-17 19:50:47 +02:00
Hobby-Student
0e8fef73bb
error handling, minor changes to params, ... 2022-08-17 19:43:30 +02:00
Marco
aaee0414c8 Fix and Upgrade
Switching from formula.php to SOAP
Now session-based login 
Only record entries with corresponding values will now be deleted
2022-08-04 09:44:35 +02:00
Marco4223
6613ae57b0 Update dns_kas.sh
sleep 10 to _sleep 10
2020-01-23 19:20:44 +01:00
Marco4223
431c53efcf Update dns_kas.sh
Removing spaces in empty lines
2020-01-15 17:48:30 +01:00
Marco4223
024619676b Update dns_kas.sh
fixing 4 Travis style
2020-01-15 13:56:01 +01:00
Marco4223
8dd1df71cc Update dns_kas.sh
tested and works now
2020-01-02 17:10:36 +01:00
Marco4223
2214507db0 Revert "Update dns_kas.sh"
This reverts commit 99c47dd50a.
2019-12-29 10:59:28 +01:00
Marco4223
a138425417 Update dns_kas.sh
sorry for this commit.  ;)
Fix NewBeMistakes
2019-12-28 23:42:46 +01:00
Marco4223
99c47dd50a Update dns_kas.sh
only bash needed
2019-12-28 22:42:51 +01:00
Marco4223
594b83e7a6 Update dns_kas.sh
remove "rev" command
fix "Error removing txt for domain:_acme-challenge.foo"
2019-12-28 11:58:21 +01:00
Martin Kammerlander
3ccac629bc Change the loop for sh. 2019-12-12 16:23:42 +01:00
Martin Kammerlander
953a9b1768 Remove obsolete blank. 2019-11-29 22:51:23 +01:00
Martin Kammerlander
c641b61b26 Fix a few snytax issues 2019-11-29 22:46:44 +01:00
Martin Kammerlander
ec1f9841b2 Replace grep -A. 2019-11-29 22:22:26 +01:00
Dominic Jonas
1ef7fd3659 support to delete multiple entries 2019-06-05 11:38:41 +02:00
Martin Kammerlander
68f66ca101 Add default delay for the calls to KAS api since they are very restrictive with that. 2018-08-02 16:20:48 +02:00
Martin Kammerlander
cb4a2cf029 remove debug output 2018-03-16 16:47:47 +01:00
Martin Kammerlander
26b5180bf7 Rename full_domain and txt_value variables. 2018-03-16 15:49:40 +01:00
Martin Kammerlander
11bfb1e5fd Fix return values of some functions. 2018-03-16 15:02:47 +01:00
Martin Kammerlander
e431df06ab Only create entry. Remove update. 2018-03-16 14:54:08 +01:00
Martin Kammerlander
32d7bd5ab1 Add own github repository URL. 2018-03-09 16:33:35 +01:00
Martin Kammerlander
861df49670 Add All-inkl kasserver script. 2018-03-09 16:29:47 +01:00