ACME申请证书时可以设置回调URL

This commit is contained in:
刘祥超
2021-06-24 09:27:11 +08:00
parent 8e4ee54f03
commit b466ea2fd1
2 changed files with 6 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ func (this *CreateAction) RunPost(params struct {
DnsDomain string DnsDomain string
Domains []string Domains []string
AutoRenew bool AutoRenew bool
AuthURL string
Must *actions.Must Must *actions.Must
}) { }) {
@@ -123,6 +124,7 @@ func (this *CreateAction) RunPost(params struct {
DnsDomain: dnsDomain, DnsDomain: dnsDomain,
Domains: realDomains, Domains: realDomains,
AutoRenew: params.AutoRenew, AutoRenew: params.AutoRenew,
AuthURL: params.AuthURL,
}) })
if err != nil { if err != nil {
this.ErrorPage(err) this.ErrorPage(err)
@@ -138,6 +140,7 @@ func (this *CreateAction) RunPost(params struct {
DnsDomain: dnsDomain, DnsDomain: dnsDomain,
Domains: realDomains, Domains: realDomains,
AutoRenew: params.AutoRenew, AutoRenew: params.AutoRenew,
AuthURL: params.AuthURL,
}) })
if err != nil { if err != nil {
this.ErrorPage(err) this.ErrorPage(err)

View File

@@ -61,6 +61,7 @@ func (this *UpdateTaskPopupAction) RunGet(params struct {
"domains": task.Domains, "domains": task.Domains,
"autoRenew": task.AutoRenew, "autoRenew": task.AutoRenew,
"isOn": task.IsOn, "isOn": task.IsOn,
"authURL": task.AuthURL,
"dnsProvider": dnsProviderMap, "dnsProvider": dnsProviderMap,
} }
@@ -94,6 +95,7 @@ func (this *UpdateTaskPopupAction) RunPost(params struct {
DnsDomain string DnsDomain string
Domains []string Domains []string
AutoRenew bool AutoRenew bool
AuthURL string
Must *actions.Must Must *actions.Must
CSRF *actionutils.CSRF CSRF *actionutils.CSRF
@@ -146,6 +148,7 @@ func (this *UpdateTaskPopupAction) RunPost(params struct {
DnsDomain: dnsDomain, DnsDomain: dnsDomain,
Domains: realDomains, Domains: realDomains,
AutoRenew: params.AutoRenew, AutoRenew: params.AutoRenew,
AuthURL: params.AuthURL,
}) })
if err != nil { if err != nil {
this.ErrorPage(err) this.ErrorPage(err)