ready for v1.0rc1
This commit is contained in:
parent
84d48a6eea
commit
ce5764840f
15 changed files with 140 additions and 49 deletions
|
|
@ -29,8 +29,10 @@ const (
|
|||
defRunUser = "docstore"
|
||||
defRunGroup = "docstore"
|
||||
|
||||
defTimeout = 600
|
||||
defTimeout = 600
|
||||
|
||||
tesseractThreads = 1
|
||||
tesseractOEM = 1
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -76,7 +78,7 @@ func initServer(cfg core.Config) (err error) {
|
|||
debugCfg.Secret = "***hidden***"
|
||||
log.Debugf("docstore config: %+v", debugCfg)
|
||||
|
||||
scanner, err := scan.New(cfg.DataDir, cfg.Langs, cfg.TesseractThreads, time.Second*time.Duration(cfg.CMDTimeout))
|
||||
scanner, err := scan.New(cfg)
|
||||
if err != nil {
|
||||
return errors.New("scanner: " + err.Error())
|
||||
}
|
||||
|
|
@ -265,6 +267,12 @@ func serverFlags() []cli.Flag {
|
|||
Usage: "tesseract thread limit (1-4)",
|
||||
Destination: &config.TesseractThreads,
|
||||
},
|
||||
cli.IntFlag{
|
||||
Name: "oem",
|
||||
Value: tesseractOEM,
|
||||
Usage: "tesseract oem value (1-4)",
|
||||
Destination: &config.TesseractOEM,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "foreground, f",
|
||||
Usage: "do not fork into the background",
|
||||
|
|
@ -272,7 +280,7 @@ func serverFlags() []cli.Flag {
|
|||
},
|
||||
cli.BoolFlag{
|
||||
Name: "secure, s",
|
||||
Usage: "enable secure cookie",
|
||||
Usage: "enable secure cookie flag",
|
||||
Destination: &config.SecureCookie,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue