支持续期策略运行时生效

This commit is contained in:
xuans committed 2026-08-30 23:58:08 +08:00
1 parent 8ab3459a03
commit 11cbd8a2f2
5 files changed
+131 -50

No files matched your search

+5 -4
View File
@@ -138,10 +138,11 @@ func NewWithConfigPath(ctx context.Context, cfg config.Config, configPath string
RunRenewal: func(ctx context.Context) (certificate.RenewalReport, error) {
return renewal.RunOnce(ctx)
},
CurrentCertificate: certificates,
ResetStatePath: admin.StatePath(cfg.Paths.Data),
Audit: auditRepo,
Tasks: taskRepo,
UpdateRenewalPolicy: renewal.UpdatePolicy,
CurrentCertificate: certificates,
ResetStatePath: admin.StatePath(cfg.Paths.Data),
Audit: auditRepo,
Tasks: taskRepo,
})
return &App{
Config: cfg, Logger: logger, Database: db, Repository: repo,