Feat: custom SQLite db file path

This commit is contained in:
HFO4
2020-03-18 09:03:25 +08:00
parent b98e5efb83
commit 96983ddc70
3 changed files with 4 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ type database struct {
Host string
Name string
TablePrefix string
DBFile string
}
// system 系统通用配置

View File

@@ -11,7 +11,8 @@ var RedisConfig = &redis{
// DatabaseConfig 数据库配置
var DatabaseConfig = &database{
Type: "UNSET",
Type: "UNSET",
DBFile: "cloudreve.db",
}
// SystemConfig 系统公用配置