Cert string
Key string
CACert string
+
+ // Require client authentication
+ ClientCAs []string
+}
+
+type AuthCfg struct {
+ Passwords string
+ Realm string
}
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
+ GOSTTLS *TLSCfg
+ DirList bool
+ WebDAV bool
+ Hooks []Hook
+ Auth *AuthCfg
+
+ Indexes []string
+ Readmes []string
+ MIMEs map[string]string
}
var Hosts = make(map[string]*HostCfg)