Commit Graph

45 Commits (276e089419592eabe1f188fdb53d161ab835cf70)

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
Lorenz Stechauner 5d6d0c6176 World4You: fix paketnr parsing
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
2 years ago
Lorenz Stechauner 3a29e03458 dns_world4you: Use _lower_case instead of tr
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner 29f12ddaf4 dns_world4you: Improve error message handling
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner ed15ff0515 dns_world4you: Fix upper case fqdn issues
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner a8f71f79fe dns_world4you: Update error handling
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner 68c2478e0e dns_world4you: Handle already logged in sessions
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner 4d8b661d51 dns_world4you: Fix cookie parsing issue
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner db83643c1e dns_world4you: fix _parse_paket_nr
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner 190ec0c14c
Adapt dns_world4you to new world4you website behaviour 3 years ago
Lorenz Stechauner 6e7ce1eec1 dns_world4you: fix for freeBSD sed
Signed-off-by: Lorenz Stechauner <lorenz.stechauner@necronda.net>
3 years ago
Lorenz Stechauner aa7bf9169f Fix Word4You dns plugin to work with current api
the value for uniqueFormIdTTL is not available or needed anymore.
values for 'aktivPaket' are not needed by the api.

changed endpoint for deletion from `/deleteRecord` to `/dns/record/delete`
3 years ago
Lorenz Stechauner cb90167c76
World4You shellcheck 4 years ago
Lorenz Stechauner ac4ae85a4a
World4You code refactor 4 years ago
Lorenz Stechauner 48b2a271cc
World4You Bugfix unable to parse paketnr 4 years ago
Lorenz Stechauner be43cebf7d World4You Mac fix 4 years ago
Lorenz Stechauner f38317d01f World4You Mac debug 4 years ago
Lorenz Stechauner da839aae66 World4You check response message 4 years ago
Lorenz Stechauner 40631f465e World4You updated info strings 4 years ago
Lorenz Stechauner f665c73bb1 World4You fixed return value 4 years ago
Lorenz Stechauner 3c309df6dd World4You shellcheck cleaning 4 years ago
Lorenz Stechauner b7e6d98647 World4You grep fix 4 years ago
Lorenz Stechauner 48942de75e World4You cleaning 4 years ago
Lorenz Stechauner fbcbc10174 World4You Shellcheck 4 years ago
Lorenz Stechauner 342b48105f World4You fix for no redirects 4 years ago
Lorenz Stechauner 5f3e7f02cc World4You _head_n fix 4 years ago
Lorenz Stechauner bfccf29ccf World4You redirect fix 4 years ago
Lorenz Stechauner 1e3bb1f02b World4You head_n 4 years ago
Lorenz Stechauner 0dcf6771e7 World4you grammar 4 years ago
Lorenz Stechauner c3d7f2f170 World4You removed _ggrep 4 years ago
Lorenz Stechauner faf6c16717 World4You success on 302 instead of 302 or 200 4 years ago
Lorenz Stechauner 3d79d78134 World4You using /dev/null instead of grep -q 4 years ago
Lorenz Stechauner 35cab4ee73 World4You using _egrep_o instead of grep -E 4 years ago
Lorenz Stechauner a0edb8f2ad World4You using ggrep more often 4 years ago
Lorenz Stechauner 5cfe5e312b World4You dns root parsing 4 years ago
Lorenz Stechauner 13f6ec04d5 World4You Bugfix 2 4 years ago
Lorenz Stechauner 2edc4a79b9 World4You Bugfix 4 years ago
Lorenz Stechauner 4661185719 World4You grep -q 4 years ago
Lorenz Stechauner 895da5cbf0 World4You Shellcheck 4 years ago
Lorenz Stechauner ef9147512b World4You posix shell 4 years ago
Lorenz Stechauner abe05456f7 World4You domain root fix 4 years ago
Lorenz Stechauner f9dfd3b348 World4You shellcheck 4 years ago
Lorenz Stechauner 9449501537 World4You using ggrep in solaris 4 years ago
Lorenz Stechauner f3b5d5ab7b World4You using _egrep_o 4 years ago
Lorenz Stechauner 8ee5726e0c Added World4You DNS API 4 years ago