-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>, 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 <[email protected]>
- Loading branch information
Showing
144 changed files
with
1,399 additions
and
986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
#!/usr/bin/env sh | ||
# -*- mode: sh; tab-width: 2; indent-tabs-mode: s; coding: utf-8 -*- | ||
|
||
# This is the InternetX autoDNS xml api wrapper for acme.sh | ||
# Author: [email protected] | ||
# Created: 2018-01-14 | ||
# | ||
# export AUTODNS_USER="username" | ||
# export AUTODNS_PASSWORD="password" | ||
# export AUTODNS_CONTEXT="context" | ||
# | ||
# Usage: | ||
# acme.sh --issue --dns dns_autodns -d example.com | ||
# shellcheck disable=SC2034 | ||
dns_autodns_info='InternetX autoDNS | ||
InternetX autoDNS XML API | ||
Site: InternetX.com/autodns/ | ||
Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi#dns_autodns | ||
Options: | ||
AUTODNS_USER Username | ||
AUTODNS_PASSWORD Password | ||
AUTODNS_CONTEXT Context | ||
Author: <[email protected]> | ||
' | ||
|
||
AUTODNS_API="https://gateway.autodns.com" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
#!/usr/bin/env sh | ||
# shellcheck disable=SC2034 | ||
dns_bookmyname_info='BookMyName.com | ||
Site: BookMyName.com | ||
Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi2#dns_bookmyname | ||
Options: | ||
BOOKMYNAME_USERNAME Username | ||
BOOKMYNAME_PASSWORD Password | ||
Issues: github.com/acmesh-official/acme.sh/issues/3209 | ||
Author: Neilpang | ||
' | ||
|
||
#Here is a sample custom api script. | ||
#This file name is "dns_bookmyname.sh" | ||
#So, here must be a method dns_bookmyname_add() | ||
#Which will be called by acme.sh to add the txt record to your api system. | ||
#returns 0 means success, otherwise error. | ||
# | ||
#Author: Neilpang | ||
#Report Bugs here: https://github.com/acmesh-official/acme.sh | ||
# | ||
######## Public functions ##################### | ||
|
||
# Please Read this guide first: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide | ||
|
||
# BookMyName urls: | ||
# https://BOOKMYNAME_USERNAME:[email protected]/dyndns/?hostname=_acme-challenge.domain.tld&type=txt&ttl=300&do=add&value="XXXXXXXX"' | ||
# https://BOOKMYNAME_USERNAME:[email protected]/dyndns/?hostname=_acme-challenge.domain.tld&type=txt&ttl=300&do=remove&value="XXXXXXXX"' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
#!/usr/bin/env sh | ||
|
||
## Will be called by acme.sh to add the TXT record via the Bunny DNS API. | ||
## returns 0 means success, otherwise error. | ||
|
||
## Author: nosilver4u <nosilver4u at ewww.io> | ||
## GitHub: https://github.com/nosilver4u/acme.sh | ||
|
||
## | ||
## Environment Variables Required: | ||
## | ||
## BUNNY_API_KEY="75310dc4-ca77-9ac3-9a19-f6355db573b49ce92ae1-2655-3ebd-61ac-3a3ae34834cc" | ||
## | ||
# shellcheck disable=SC2034 | ||
dns_bunny_info='Bunny.net | ||
Site: Bunny.net/dns/ | ||
Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi2#dns_bunny | ||
Options: | ||
BUNNY_API_KEY API Key | ||
Issues: github.com/acmesh-official/acme.sh/issues/4296 | ||
Author: <[email protected]> | ||
' | ||
|
||
##################### Public functions ##################### | ||
|
||
|
Oops, something went wrong.