Commit Graph

22 Commits (fcffe8beb9da574818ee6f53772fcd3bbe737d72)

Author SHA1 Message Date
stbeldarborge fcffe8beb9
feat: add bearer token support 5 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
michal 7250a300df add managed identity support for azure dns 3 years ago
neil 19c4345162 fix shfmt 5 years ago
neil 40cda9220a fix https://github.com/acmesh-official/acme.sh/issues/3077 5 years ago
neilpang d795fac37a update repo name 5 years ago
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).*".
6 years ago
Joakim Lemb 12956679e7 Added top URI parameter 6 years ago
martgras 9e3c931b34 dns_azure add support for validation record at domain apex
Prevent the issue described in #1442
Fix [SC1117] Backslash is literal in "\[".
7 years ago
martgras 224e0c298a Fix missing success return value from dns_azure_add/rm 7 years ago
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
7 years ago
neilpang 8c88757451 fix format 7 years ago
neilpang dd171ca44a fix format 7 years ago
martgras 72fe7396d6
spelling mistake in error message 7 years ago
neil e4b24d20ac
Update dns_azure.sh 7 years ago
neil 91607bb2a1
Update dns_azure.sh 7 years ago
martgras 441c26dd32
Update dns_azure.sh 7 years ago
martgras c7b8debb6e
fix travis issues 7 years ago
martgras d51c383866
remove unused code and fix error handling 7 years ago
martgras f7d4698ef0
improve error checking 7 years ago
martgras 3fdbbafcb5
fix getroot with multiple dns zones 7 years ago
martgras e90f3b84c1
Add support for Azure DNS
Adding support for Azure DNS 
See https://docs.microsoft.com/en-us/azure/dns/
7 years ago