mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
Update go-gemini dependency
This commit is contained in:
parent
5bdbb822e3
commit
84fde17123
2
go.mod
2
go.mod
|
@ -2,4 +2,4 @@ module kiln
|
||||||
|
|
||||||
go 1.15
|
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
4
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.3 h1:uClB4mzTkHBMKBde63/EzrsIhRuHxxaNHVRf1/gApXU=
|
||||||
git.sr.ht/~adnano/go-gemini v0.1.1/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0=
|
git.sr.ht/~adnano/go-gemini v0.1.3/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0=
|
||||||
|
|
6
main.go
6
main.go
|
@ -153,11 +153,7 @@ func run() error {
|
||||||
// serve the site
|
// serve the site
|
||||||
func serve() error {
|
func serve() error {
|
||||||
var server gemini.Server
|
var server gemini.Server
|
||||||
cert, err := gemini.NewCertificate("localhost", time.Hour)
|
server.Certificates.Load("/var/lib/gemini/certs")
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
server.CertificateStore.Add("localhost", cert)
|
|
||||||
server.Register("localhost", gemini.FileServer(gemini.Dir("dst")))
|
server.Register("localhost", gemini.FileServer(gemini.Dir("dst")))
|
||||||
return server.ListenAndServe()
|
return server.ListenAndServe()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue