[Feature](database): Add Support for SSL Connections and Database URL Configuration (#2540)

* feat(database): add support for SSL connections and database URL configuration

* feat(config): update Redis configuration to use TLS in configurre name instead of SSL

* fix(database): remove default values for DatabaseURL and SSLMode in DatabaseConfig

* chore(.gitignore): add cloudreve built binary to ignore list
This commit is contained in:
charlieJ107
2025-06-23 10:12:20 +01:00
committed by GitHub
parent fec549f5ec
commit 1bd62e8feb
6 changed files with 85 additions and 62 deletions

View File

@@ -329,11 +329,7 @@ func (d *dependency) KV() cache.Driver {
d.kv = cache.NewRedisStore(
d.Logger(),
10,
config.Network,
config.Server,
config.User,
config.Password,
config.DB,
config,
)
} else {
d.kv = cache.NewMemoStore(util.DataPath(cache.DefaultCacheFile), d.Logger())