Skip to content

Commit

Permalink
Updated directory manually
Browse files Browse the repository at this point in the history
  • Loading branch information
grellyd committed Dec 10, 2023
1 parent bf3adfc commit 71a6a1d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions grellyddotcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/pkg/errors"
"golang.org/x/crypto/acme"
"golang.org/x/crypto/acme/autocert"

"github.com/grellyd/filelogging/globallogger"
Expand Down Expand Up @@ -100,12 +101,13 @@ func run() error {
}

func buildCertManager() (*autocert.Manager, error) {
// client := acme.Client{
// DirectoryURL: "https://acme-staging-v02.api.letsencrypt.org/directory",
// }
client := acme.Client{
//DirectoryURL: "https://acme-staging-v02.api.letsencrypt.org/directory",
DirectoryURL: "https://acme-v02.api.letsencrypt.org/directory",
}

certManager := autocert.Manager{
// Client: &client,
Client: &client,
Prompt: autocert.AcceptTOS,
HostPolicy: autocert.HostWhitelist("grellyd.com", "www.grellyd.com", "dev.grellyd.com"),
Cache: autocert.DirCache("certs"),
Expand Down

0 comments on commit 71a6a1d

Please sign in to comment.