From 84fde1712356e1ff4f5f81ca55d655c3448f49f0 Mon Sep 17 00:00:00 2001 From: adnano Date: Thu, 29 Oct 2020 00:48:40 -0400 Subject: [PATCH] Update go-gemini dependency --- go.mod | 2 +- go.sum | 4 ++-- main.go | 6 +----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 7734465..4c6a95b 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module kiln go 1.15 -require git.sr.ht/~adnano/go-gemini v0.1.1 +require git.sr.ht/~adnano/go-gemini v0.1.3 diff --git a/go.sum b/go.sum index 811d3ca..69a6c9d 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -git.sr.ht/~adnano/go-gemini v0.1.1 h1:g6OwUxLviy6dkPiuW2eRQP5Fow412vUsKmKYbCr2H9U= -git.sr.ht/~adnano/go-gemini v0.1.1/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0= +git.sr.ht/~adnano/go-gemini v0.1.3 h1:uClB4mzTkHBMKBde63/EzrsIhRuHxxaNHVRf1/gApXU= +git.sr.ht/~adnano/go-gemini v0.1.3/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0= diff --git a/main.go b/main.go index cf8eff1..186614e 100644 --- a/main.go +++ b/main.go @@ -153,11 +153,7 @@ func run() error { // serve the site func serve() error { var server gemini.Server - cert, err := gemini.NewCertificate("localhost", time.Hour) - if err != nil { - return err - } - server.CertificateStore.Add("localhost", cert) + server.Certificates.Load("/var/lib/gemini/certs") server.Register("localhost", gemini.FileServer(gemini.Dir("dst"))) return server.ListenAndServe() }