Init storage engine (#13707)

### What problem does this PR solve?

1. Init Minio / S3 / OSS
2. Fix minio / s3 / oss config

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-03-20 13:15:41 +08:00
committed by GitHub
parent 04a60a41e0
commit 9ce766192f
6 changed files with 115 additions and 138 deletions

View File

@ -10,6 +10,7 @@ import (
"ragflow/internal/common"
"ragflow/internal/server"
"ragflow/internal/server/local"
"ragflow/internal/storage"
"ragflow/internal/utility"
"strings"
"syscall"
@ -118,6 +119,10 @@ func main() {
}
defer cache.Close()
if err := storage.InitStorageFactory(); err != nil {
logger.Fatal("Failed to initialize storage factory", zap.Error(err))
}
// Initialize server variables (runtime variables that can change during operation)
// This must be done after Cache is initialized
if err := server.InitVariables(cache.Get()); err != nil {