mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 11:44:11 +08:00
Let's Encrypt添加Cloudflare接口,优化DNS服务商信息的存储方式和前端显示
This commit is contained in:
@@ -101,11 +101,22 @@ func addInitData() error {
|
||||
|
||||
// SettingDnsProvider
|
||||
provider := &SettingDnsProvider{
|
||||
Legomail: "legomail",
|
||||
Name: "aliyun OR TXCloud",
|
||||
AccessKeyID: "AccessKeyID",
|
||||
AccessKeySecret: "AccessKeySecret",
|
||||
Domain: "vpn.xxx.com",
|
||||
Domain: "vpn.xxx.com",
|
||||
Legomail: "legomail",
|
||||
Name: "",
|
||||
Renew: false,
|
||||
AliYun: struct {
|
||||
APIKey string `json:"apiKey"`
|
||||
SecretKey string `json:"secretKey"`
|
||||
}{APIKey: "", SecretKey: ""},
|
||||
TXCloud: struct {
|
||||
SecretID string `json:"secretId"`
|
||||
SecretKey string `json:"secretKey"`
|
||||
}{SecretID: "", SecretKey: ""},
|
||||
CfCloud: struct {
|
||||
AuthEmail string `json:"authEmail"`
|
||||
AuthKey string `json:"authKey"`
|
||||
}{AuthEmail: "", AuthKey: ""},
|
||||
}
|
||||
err = SettingSessAdd(sess, provider)
|
||||
if err != nil {
|
||||
|
@@ -34,12 +34,23 @@ type SettingOther struct {
|
||||
}
|
||||
|
||||
type SettingDnsProvider struct {
|
||||
Legomail string `json:"legomail"`
|
||||
Name string `json:"name"`
|
||||
AccessKeyID string `json:"accessKeyId"`
|
||||
AccessKeySecret string `json:"accessKeySecret"`
|
||||
Domain string `json:"domain"`
|
||||
Renew bool `json:"renew"`
|
||||
Domain string `json:"domain"`
|
||||
Legomail string `json:"legomail"`
|
||||
Name string `json:"name"`
|
||||
Renew bool `json:"renew"`
|
||||
AliYun struct {
|
||||
APIKey string `json:"apiKey"`
|
||||
SecretKey string `json:"secretKey"`
|
||||
} `json:"aliyun"`
|
||||
|
||||
TXCloud struct {
|
||||
SecretID string `json:"secretId"`
|
||||
SecretKey string `json:"secretKey"`
|
||||
} `json:"txcloud"`
|
||||
CfCloud struct {
|
||||
AuthEmail string `json:"authEmail"`
|
||||
AuthKey string `json:"authKey"`
|
||||
} `json:"cfcloud"`
|
||||
}
|
||||
|
||||
func StructName(data interface{}) string {
|
||||
|
Reference in New Issue
Block a user