This commit is contained in:
Daniel 2024-12-08 22:10:35 +08:00
parent 67087238d8
commit ada8c71ca9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 8 additions and 0 deletions

View file

@ -18,6 +18,7 @@ package model
import (
"bytes"
"crypto/sha1"
"fmt"
"os"
"path/filepath"
@ -392,6 +393,9 @@ func InitConf() {
if 1 > Conf.Repo.RetentionIndexesDaily {
Conf.Repo.RetentionIndexesDaily = 2
}
if 0 < len(Conf.Repo.Key) {
logging.LogInfof("repo key [%x]", sha1.Sum(Conf.Repo.Key))
}
if nil == Conf.Search {
Conf.Search = conf.NewSearch()