diff --git a/web/main.go b/web/main.go index 1d26846..13610ca 100644 --- a/web/main.go +++ b/web/main.go @@ -27,12 +27,12 @@ import ( // A Service stores configuration of a server. type Service struct { // config - Listen string `toml:"listen"` - AccessLog bool `toml:"access_log"` - WebrootIndexDisable bool `toml:"webroot_index_disable"` - Webroot string `toml:"webroot"` - WebrootFS http.FileSystem `toml:"-"` - ACME struct { + Listen string `toml:"listen"` + AccessLog bool `toml:"access_log"` + WebrootIndexDisable bool `toml:"webroot_index_disable"` + Webroot string `toml:"webroot"` + WebrootFS http.FileSystem `toml:"-"` + ACME struct { Enable bool `toml:"enable"` Domains []string `toml:"domains"` Cache string `toml:"cache"` diff --git a/web/module.go b/web/module.go index 23f2ff2..649a1c3 100644 --- a/web/module.go +++ b/web/module.go @@ -22,7 +22,7 @@ func (ws *Service) Bind(r *gin.Engine) { ws.log.Info("bind modules", zap.Int("count", len(ws.modules))) if ws.Webroot != "" { - ws.WebrootFS = static.LocalFile(ws.Webroot, false) + ws.WebrootFS = static.LocalFile(ws.Webroot, false) } r.Use(func(c *gin.Context) { if !ws.WebrootIndexDisable {