Commit Graph

55 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
neilpang
6ccf617d62 clear CF_Zone_ID 2022-06-21 10:12:06 +08:00
neil
2c2a43e1ec Update dns_cf.sh
if CF_Zone_ID is used,  save it to domain conf instead.
2022-02-09 18:08:55 +08:00
neil
58c2c70146 fix https://github.com/acmesh-official/acme.sh/issues/2888 2020-04-29 10:42:17 +08:00
neil
ad9f488df6 fix https://github.com/acmesh-official/acme.sh/issues/2888 2020-04-29 10:38:21 +08:00
neil
b19799bc72 fix https://github.com/acmesh-official/acme.sh/issues/2888 2020-04-29 10:19:35 +08:00
neil
1209b9b86e fix https://github.com/acmesh-official/acme.sh/issues/2888 2020-04-29 10:15:13 +08:00
neil
da957a3caf fix https://github.com/acmesh-official/acme.sh/issues/2888 2020-04-29 10:12:29 +08:00
Scott Wiersdorf
52a16c917f show response when unable to retrieve DNS records for a zone 2020-04-11 11:24:30 -06:00
netpok
34cebe8c0c
Fix invalid domain error on dns_cf update
When dns_cf used with Zone ID it fails on removal of the entry.

This pull request adds the missing CF_Zone_ID loading.
2020-03-29 23:45:52 +02:00
Arthur Wiebe
d43227ede4
fix shellcheck issues 2020-02-11 13:07:10 -05:00
Arthur Wiebe
719b690451
add support for using a Zone ID 2020-02-10 10:22:55 -05:00
neil
55dea4ee9d
sync (#2404)
* support jdcloud.com

* fix format

* ttl 3000

* Escape slashes (#2375)

* Change 1.1.1.1 to 1.0.0.1 to probe compatibility (#2330)

As we can see, 1.1.1.1 is not routed or routed to an Intranet devices due to historical reason. Change 1.1.1.1 to 1.0.0.1 will have a better compatibility. I found this problem on my Tencent Cloud server.

* check empty id

* fix error

* Add dnsapi for Vultr (#2370)

* Add Vultr dns api

* PushOver notifications (#2325)

* PushOver notifications, using AppToken, UserKey, and optional sounds

* fix errors

* added dns api support for hexonet (#1776)

* update

* minor

* support new Cloudflare Token format
fix https://github.com/Neilpang/acme.sh/issues/2398

* fix wildcard domain name

* add more info

* fix https://github.com/Neilpang/acme.sh/issues/2377

* fix format

* fix format
2019-07-27 11:48:29 +08:00
neilpang
11ecbd27be fix punycode domain 2019-05-08 22:07:27 +08:00
neilpang
e46b392a8d Merge branch 'dev' of https://github.com/Neilpang/acme.sh into dev 2019-04-26 23:58:09 +08:00
neilpang
47ff768b70 fix https://github.com/Neilpang/acme.sh/issues/2195 2019-04-26 23:57:40 +08:00
neil
68428a5d5e
Merge pull request #2205 from kirpichiki/dns_cf_invalid_domain
CloudFlare dns invalid domain
2019-04-26 23:50:50 +08:00
Gorbachev
6e917d156c
Trim double quotes for email and key
Currently dns_cf generates headers like this: 'X-Auth-Email: "sample@mail.com"'. Cloudflare API responses 400 BadRequest for quoted headers with message "Invalid format for X-Auth-Email header".
2019-04-02 18:05:52 +03:00
neilpang
c2d0d4d28c root domain as dns alias mode 2019-03-31 21:46:14 +08:00
hebbet
68d9aad3a2
add link to profile of Cloudflare
follow-up for #1893
2019-01-03 14:19:55 +01:00
neilpang
7ba9a5972d revert fix for https://github.com/Neilpang/acme.sh/issues/1941
1. fix https://github.com/Neilpang/acme.sh/issues/1977
2. The cache is too long to as a line to save in the conf
2018-12-28 22:45:40 +08:00
Ketil
2671af13cd Bugfix for allowing '+' character in CloudFlare email 2018-12-27 15:17:19 +01:00
neil
a43545c6ea fix https://github.com/Neilpang/acme.sh/issues/1959 2018-12-11 19:11:56 +08:00
neilpang
598becf619 minor, fix format 2018-12-03 20:31:20 +08:00
neilpang
7917aa2a7c fix https://github.com/Neilpang/acme.sh/issues/1941
cache dns zones response
2018-12-02 19:37:35 +08:00
Rid
6b26d2b62d Fixed grammatical errors 2018-03-15 09:50:54 +00:00
neilpang
506c41cb15 fix format 2018-01-16 21:29:47 +08:00
neilpang
72f54ca6c1 support ACME v2 wildcard cert 2018-01-16 21:29:47 +08:00
neilpang
cd98951001 fix https://github.com/Neilpang/acme.sh/issues/794#issuecomment-294314606 2017-04-16 09:36:59 +08:00
neilpang
eb0fc67461 fix format 2017-04-11 22:29:49 +08:00
neilpang
fcdf41ba29 support change account conf from env 2017-04-11 21:37:56 +08:00
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>
2017-01-13 14:54:09 +01:00
neilpang
15af89d51c fix https://github.com/Neilpang/acme.sh/issues/490 2016-12-27 20:40:52 +08:00
klemens
329174b6d9 spelling fixes 2016-12-14 21:32:24 +01:00
neilpang
122cc48c29 minor 2016-12-07 11:51:15 +08:00
neilpang
c7c57cfa0e fix for solaris 2016-12-07 11:49:24 +08:00
neilpang
c0d0100ca8 fix format 2016-12-06 15:18:02 +08:00
neilpang
21f201e371 support cloudflare rm function 2016-12-06 14:58:36 +08:00
neilpang
ab45b7783f fix format 2016-11-17 00:25:40 +08:00
neilpang
4a56b2406b fix check email 2016-11-17 00:22:45 +08:00
neilpang
797cbb9b20 fix shellcheck warnings 2016-11-12 11:05:05 +08:00
neilpang
e440223b40 fix shellcheck warnings 2016-11-12 00:50:44 +08:00
neilpang
c7b16249b8 fix shellcheck warnings 2016-11-11 23:30:14 +08:00
neilpang
4c2a384159 Add shfmt to format source code 2016-11-09 19:30:39 +08:00
neilpang
5d6fd8099f add dns_xxx_rm function
https://github.com/Neilpang/acme.sh/issues/79
2016-10-25 23:08:02 +08:00
neil
ef858ef062 use head -n 2016-09-30 21:37:39 +08:00
neil
cfdaff5a46 fix cf 2016-09-22 20:36:33 +08:00
neil
22ea4004e1 Support SunOS/Solaris (#260)
Support SunOS/Solaris 

* Support Solaris

* Support SunOS/Open Solaris
2016-08-10 21:54:08 +08:00
raunsbaekdk
8d5618c44a Bash does not support double equal sign (#192)
use single equal sign '=' instead.
2016-05-21 22:59:39 +08:00
neil
a4270efac9 fix wget support in dns api 2016-05-07 23:33:42 +08:00