Update go-gemini dependency

This commit is contained in:
adnano 2020-10-29 00:48:40 -04:00
parent 5bdbb822e3
commit 84fde17123
3 changed files with 4 additions and 8 deletions

2
go.mod
View file

@ -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

4
go.sum
View file

@ -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=

View file

@ -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()
}