* 新增支持自定义上传证书功能

* 新增支持申请和自动续期Let's Encrypt证书(暂只支持阿里云和腾讯云)功能
* 新增支持动态加载证书(更换证书不需重启)功能
This commit is contained in:
wsczx
2023-03-31 20:34:29 +08:00
parent df52087473
commit 9bac773961
9 changed files with 554 additions and 39 deletions

View File

@@ -33,6 +33,15 @@ type SettingOther struct {
AccountMail string `json:"account_mail"`
}
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"`
}
func StructName(data interface{}) string {
ref := reflect.ValueOf(data)
s := &ref