feat: add environment variables configuration support (#1088)

This commit is contained in:
Levi authored and GitHub committed 2025-08-28 08:21:02 +08:00
1 parent 2fd2596aa0
commit 7ce0d876b0
8 files changed
+908 -82

No files matched your search

+3 -2
View File
@@ -83,8 +83,9 @@ func BuildServer(startCfg *model.StartConfig) (*http.Server, net.Listener, error
startCfg.Init()
downloadCfg := &download.DownloaderConfig{
ProductionMode: startCfg.ProductionMode,
RefreshInterval: startCfg.RefreshInterval,
ProductionMode: startCfg.ProductionMode,
RefreshInterval: startCfg.RefreshInterval,
WhiteDownloadDirs: startCfg.WhiteDownloadDirs,
}
if startCfg.Storage == model.StorageBolt {
downloadCfg.Storage = download.NewBoltStorage(startCfg.StorageDir)