web ui: allow to create folders from a template

This commit is contained in:
Nicola Murino
2021-02-04 19:09:43 +01:00
parent 17a42a0c11
commit 267d9f1831
13 changed files with 268 additions and 51 deletions

View File

@@ -5,6 +5,8 @@ import (
"fmt"
"path/filepath"
"github.com/go-chi/chi/middleware"
"github.com/drakkan/sftpgo/common"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/utils"
@@ -157,6 +159,7 @@ func (c *Configuration) Initialize(configDir string) error {
}
certMgr = mgr
}
compressor := middleware.NewCompressor(5, "text/*")
serviceStatus = ServiceStatus{
Bindings: nil,
@@ -174,7 +177,7 @@ func (c *Configuration) Initialize(configDir string) error {
config: c,
binding: binding,
}
exitChannel <- server.listenAndServe()
exitChannel <- server.listenAndServe(compressor)
}(binding)
}