Commit Graph

21 Commits (ea94477cd4844e079db4acad44f0109b9076a939)

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
michal 7250a300df add managed identity support for azure dns 2022-01-22 13:22:44 +08:00
neil 19c4345162 fix shfmt 2020-08-17 22:18:20 +08:00
neil 40cda9220a fix https://github.com/acmesh-official/acme.sh/issues/3077 2020-08-03 21:22:32 +08:00
neilpang d795fac37a update repo name 2020-01-30 12:06:39 +08:00
Raphaël Berlamont 971a85a6f8 dns_azure : Multiple domains with same ending bug
We have a few domains that ends the same. For example :
  iperfony.com
  perfony.com

The problem was in the _get_root functions, when getting the domain_id :
only the first result "iperfony.com" was returned, because "perfony.com"
is contained in the "iperfony.com" string.

The correction consist of being strict in the regex, adding a slash (/)
so that it will only match on ".*/(perfony.com).*" and not
".*(perfony.com).*".
2019-06-29 18:14:34 +02:00
Joakim Lemb 12956679e7 Added top URI parameter 2018-11-05 14:52:26 +01:00
martgras 9e3c931b34 dns_azure add support for validation record at domain apex
Prevent the issue described in #1442
Fix [SC1117] Backslash is literal in "\[".
2018-03-26 17:45:16 +02:00
martgras 224e0c298a Fix missing success return value from dns_azure_add/rm 2018-03-12 11:50:28 +01:00
martgras 83b1a98db1 Azure DNS API - support for ACME v2 and reliability improvments
support adding 2 txt records
Adding retry logic for REST API calls
Reusing bearer token removes 50% of required REST calls
2018-02-22 12:32:42 +01:00
neilpang 8c88757451 fix format 2018-01-26 20:39:41 +08:00
neilpang dd171ca44a fix format 2018-01-26 20:14:51 +08:00
martgras 72fe7396d6
spelling mistake in error message 2018-01-26 07:53:47 +01:00
neil e4b24d20ac
Update dns_azure.sh 2018-01-25 23:08:56 +08:00
neil 91607bb2a1
Update dns_azure.sh 2018-01-25 22:58:11 +08:00
martgras 441c26dd32
Update dns_azure.sh 2018-01-25 07:40:35 +01:00
martgras c7b8debb6e
fix travis issues 2018-01-25 07:01:39 +01:00
martgras d51c383866
remove unused code and fix error handling 2018-01-24 15:08:06 +01:00
martgras f7d4698ef0
improve error checking 2018-01-24 13:39:38 +01:00
martgras 3fdbbafcb5
fix getroot with multiple dns zones 2018-01-24 09:59:05 +01:00
martgras e90f3b84c1
Add support for Azure DNS
Adding support for Azure DNS 
See https://docs.microsoft.com/en-us/azure/dns/
2018-01-23 18:24:08 +01:00