]> Sergey Matveev's repositories - godlighty.git/blobdiff - cfg.go
Verbose redirects, tiny DRY
[godlighty.git] / cfg.go
diff --git a/cfg.go b/cfg.go
index 321941dbbbc521d427a761ab97b78e9b06c4c9b0..1aa243a8c901064442cfcca2f2ba7978d9d79848 100644 (file)
--- a/cfg.go
+++ b/cfg.go
@@ -30,15 +30,15 @@ type TLSCfg struct {
 type Hook func(http.ResponseWriter, *http.Request) bool
 
 type HostCfg struct {
-       Root         string
-       Index        string
-       TLS          *TLSCfg
-       DirList      bool
-       WebDAV       bool
-       Hooks        []Hook
-       MIMEOverride map[string]string
-
-       DirListReadmes []string
+       Root    string
+       TLS     *TLSCfg
+       DirList bool
+       WebDAV  bool
+       Hooks   []Hook
+
+       Indexes []string
+       Readmes []string
+       MIMEs   map[string]string
 }
 
 var Hosts = make(map[string]*HostCfg)