aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-01-13 00:06:46 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-01-13 20:56:41 +0000
commit57224ffa79aac59155a0f6a4ad47f224cac736fd (patch)
tree763b75c73fa6755f5d3733f24ec474081e987f5b /cmd
parentadca4cec3bf97d73e082d4c986443ffc8fee6fe1 (diff)
Use wkfs to manage the lets encrypt cache
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cashierd/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/cashierd/main.go b/cmd/cashierd/main.go
index fb67a36..83627ad 100644
--- a/cmd/cashierd/main.go
+++ b/cmd/cashierd/main.go
@@ -25,6 +25,7 @@ import (
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
+ wkfscache "github.com/nsheridan/autocert-wkfs-cache"
"github.com/nsheridan/cashier/lib"
"github.com/nsheridan/cashier/server/auth"
"github.com/nsheridan/cashier/server/auth/github"
@@ -352,7 +353,7 @@ func main() {
if conf.Server.LetsEncryptServername != "" {
m := autocert.Manager{
Prompt: autocert.AcceptTOS,
- Cache: autocert.DirCache(conf.Server.LetsEncryptCache),
+ Cache: wkfscache.Cache(conf.Server.LetsEncryptCache),
HostPolicy: autocert.HostWhitelist(conf.Server.LetsEncryptServername),
}
tlsConfig.GetCertificate = m.GetCertificate