mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-09 13:08:14 -05:00
dns_loopia
This commit is contained in:
parent
671715042e
commit
322048d5af
@ -62,6 +62,7 @@ func List() []Provider {
|
|||||||
getDNSIspconfig(),
|
getDNSIspconfig(),
|
||||||
getDNSKinghost(),
|
getDNSKinghost(),
|
||||||
getDNSLinodeV4(),
|
getDNSLinodeV4(),
|
||||||
|
getDNSLoopia(),
|
||||||
getDNSLua(),
|
getDNSLua(),
|
||||||
getDNSMe(),
|
getDNSMe(),
|
||||||
getDNSNamecom(),
|
getDNSNamecom(),
|
||||||
|
58
backend/internal/dnsproviders/dns_loopia.go
Normal file
58
backend/internal/dnsproviders/dns_loopia.go
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
package dnsproviders
|
||||||
|
|
||||||
|
const loopiaSchema = `
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"api_url",
|
||||||
|
"user",
|
||||||
|
"password"
|
||||||
|
],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"api_url": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 4
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"password": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
|
func getDNSLoopia() Provider {
|
||||||
|
return Provider{
|
||||||
|
AcmeshName: "dns_loopia",
|
||||||
|
Schema: loopiaSchema,
|
||||||
|
Fields: []providerField{
|
||||||
|
{
|
||||||
|
Name: "API URL",
|
||||||
|
Type: "text",
|
||||||
|
MetaKey: "api_url",
|
||||||
|
EnvKey: "LOOPIA_Api",
|
||||||
|
IsRequired: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "User",
|
||||||
|
Type: "text",
|
||||||
|
MetaKey: "user",
|
||||||
|
EnvKey: "LOOPIA_User",
|
||||||
|
IsRequired: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "Password",
|
||||||
|
Type: "password",
|
||||||
|
MetaKey: "password",
|
||||||
|
EnvKey: "LOOPIA_Password",
|
||||||
|
IsRequired: true,
|
||||||
|
IsSecret: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
@ -80,6 +80,9 @@
|
|||||||
"acmesh.dns_linode_v4": {
|
"acmesh.dns_linode_v4": {
|
||||||
"defaultMessage": "Linode"
|
"defaultMessage": "Linode"
|
||||||
},
|
},
|
||||||
|
"acmesh.dns_loopia": {
|
||||||
|
"defaultMessage": "Loopia"
|
||||||
|
},
|
||||||
"acmesh.dns_lua": {
|
"acmesh.dns_lua": {
|
||||||
"defaultMessage": "LuaDNS"
|
"defaultMessage": "LuaDNS"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user