Skip to content

Commit

Permalink
switch cert_manager to ClientManager instead of client instance
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Apr 6, 2022
1 parent 88d2d73 commit eb807d3
Show file tree
Hide file tree
Showing 6 changed files with 462 additions and 24 deletions.
4 changes: 1 addition & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,8 @@ func startProgram(config *configType) {
storage := &cache.DiskCache{Dir: config.General.StorageDir}
clientManager := acme_client_manager.New(ctx, storage)
clientManager.DirectoryURL = config.General.AcmeServer
acmeClient, err := clientManager.GetClient(ctx)
log.DebugFatal(logger, err, "Get acme client")

certManager := cert_manager.New(acmeClient, storage, registry)
certManager := cert_manager.New(clientManager, storage, registry)
certManager.CertificateIssueTimeout = time.Duration(config.General.IssueTimeout) * time.Second
certManager.SaveJSONMeta = config.General.StoreJSONMetadata

Expand Down

0 comments on commit eb807d3

Please sign in to comment.