Commit Graph

25 Commits (f84577bcda887f87c2db944fb54e544a9f0edbda)

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>
9 months ago
Franco Fichtner e6e22a1ca1 dnsapi: fix OPNsense script to be compatible with upcoming 23.1.8
The current script is already broken due to Bind 9.16 -> 9.18 changes
due to their renaming scheme for primary/secondary so do not rely on the
compat layer (which was also broken for other reasons).
2 years ago
Kevin Köllmann 69aeb70cc3
Slightly modify regex to conform to new API response format 2 years ago
Kevin Köllmann 47e60cefe3
Use new searchMasterDomain API endpoint 2 years ago
Jesai Langenbach 0b8ae68213 Fix: cut for domain uuid with searchDOmain response 3 years ago
Jesai Langenbach 0e73128f40 Finaly found a regex wich works for sed and egrep -o and use searchDomain api for easier to parse response 3 years ago
Jesai Langenbach 927c003d22 More robust and shortend egrep 3 years ago
richard-9000 8752d08ce9
dns_opnsense.sh - Fixed the domain parse regex
Extended the regex to skip the new transferkey and hmac sections of opnsense bind.
3 years ago
wacki4 aa9f5b8c4a Update dns_opnsense.sh
Correction when having many zones.
3 years ago
wacki4 f485f3fdb5 Update dns_opnsense.sh
Update for opnsense regards to error in #3735
3 years ago
Jesai Langenbach c49b40ee95 Allow old and new API response
CLOSES #2480
5 years ago
Wolfram Webers 08cc7587ab - Adding fix for latest "os-bind" plugin 5 years ago
Jesai Langenbach 9cb328966c typo 5 years ago
Jesai Langenbach 0c76890572 whitespace fix 5 years ago
Jesai Langenbach 18fc42e63b typos and integrate suggestions from stilez 5 years ago
Jesai Langenbach fc8d9df516 fix newline 5 years ago
Jesai Langenbach afdf8a78c0 fix space 5 years ago
Jesai Langenbach 0b3ae1f972 Add suggestions 5 years ago
Jesai Langenbach b85c1a8861 Fix additional line 5 years ago
Jesai Langenbach 430956d304 Fix whitespaces 5 years ago
Jesai Langenbach c0449a3ed2 Only save Attributes if it is set 5 years ago
Jesai Langenbach bfa6e52470 another whitespace 5 years ago
Jesai Langenbach ec654d2355 More space removing 5 years ago
Jesai Langenbach dfb4883c93 Some fixes 5 years ago
Jesai Langenbach 4bf1f579f5 Add OPNsense Bind API Support 5 years ago