]> Sergey Matveev's repositories - godlighty.git/blobdiff - cfg.go
Small comments
[godlighty.git] / cfg.go
diff --git a/cfg.go b/cfg.go
index 1aa243a8c901064442cfcca2f2ba7978d9d79848..e4e941948605af7e9969ecb4208d5d49f7e09064 100644 (file)
--- a/cfg.go
+++ b/cfg.go
@@ -25,6 +25,14 @@ type TLSCfg struct {
        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
@@ -32,9 +40,11 @@ type Hook func(http.ResponseWriter, *http.Request) bool
 type HostCfg struct {
        Root    string
        TLS     *TLSCfg
+       GOSTTLS *TLSCfg
        DirList bool
        WebDAV  bool
        Hooks   []Hook
+       Auth    *AuthCfg
 
        Indexes []string
        Readmes []string