Commit Graph

20 Commits

Author SHA1 Message Date
neil
7362e8de4d fix format 2024-10-13 17:41:22 +02:00
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
f3682f0e8e fix format 2021-04-17 22:09:59 +08:00
neilpang
cfbc294832 fix onecom api 2021-04-14 22:18:01 +08:00
neil
19c4345162 fix shfmt 2020-08-17 22:18:20 +08:00
der-berni
da7b1fb014
cleanup according to styleguide / ShellCheck 2020-04-09 12:17:08 +02:00
der-berni
5fac282ee0
Update to work with new one.com procedure
Since some Months, its no longer possible to add TXT Records with the Name "_acme-challenge" to the base domain.
To override the fallback value, you must use a CNAME and proxy it.
For example.
CNAME _acme-challenge.yourdomain.com => proxy_acme-challenge.yourdomain.com
The TXT Records have to be created on proxy_acme-challenge.yourdomain.com

Since the default CNAME TTL is 3600 seconds, it is recommended to leave the CNAME record.
But if you would like to use the build-in SSL (for your web-site etc.) from one.com, you have to delete the record.

A new variable "ONECOM_KeepCnameProxy" you can set in the account.conf is used to keep the CNAME record.
By default the CNAME record will be removed.

For ex.: SAVED_ONECOM_KeepCnameProxy='1'
to keep the CNAME Record and speedup the process.
2020-04-07 19:25:39 +02:00
der-berni
1a5279bd6e
cleanup according to styleguide 2019-05-31 08:55:21 +02:00
der-berni
937d5b5472
try to remove errors in travis-ci 2019-05-31 08:26:48 +02:00
der-berni
89e73594eb
fixed error in CI 2019-05-25 17:35:40 +02:00
der-berni
a3089a719f
Updated to work with curl
Now works with curl.
Check the root domain.
2019-05-24 09:44:13 +02:00
der-berni
e340593ad1
Revert parameter changes
Revert ONECOM_PASSWORD back to ONECOM_Password
and ONECOM_USER back to ONECOM_User
2019-05-23 09:39:54 +02:00
der-berni
68b42a00e0
updated to work with one.com
rev command not found on OpenWrt
CURL does not work, using wget
JSESSIONID replaced with OneSIDCrmAdmin
CSRF_G_TOKEN not needed
2019-05-20 17:40:43 +02:00
neilpang
dac75a1dda rename 2019-05-03 20:50:42 +08:00
diseq
472ed721a3
fix format 2019-02-20 21:51:59 +01:00
diseq
ed3f2646f0
fix format 2019-02-20 11:54:48 +01:00
diseq
0499d2b5c4
remove line break 2019-02-20 11:51:06 +01:00
diseq
81ba629b56
allow set-cookie as well as Set-Cookie 2019-02-20 11:27:49 +01:00
diseq
0bb746ba39
Update dns_one.sh 2019-02-20 09:44:25 +01:00
dsc
9ff6d6e7b5 initial commit 2019-02-17 23:20:17 +01:00