feat: better SQLite3 configuration, to avoid DB contention
This commit is contained in:
@@ -83,7 +83,7 @@ func LoadFromFile(confFile string, skipFlags ...bool) {
|
|||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
if Server.DbPath == "" {
|
if Server.DbPath == "" {
|
||||||
Server.DbPath = filepath.Join(Server.DataFolder, "navidrome.db")
|
Server.DbPath = filepath.Join(Server.DataFolder, consts.DefaultDbPath)
|
||||||
}
|
}
|
||||||
if os.Getenv("PORT") != "" {
|
if os.Getenv("PORT") != "" {
|
||||||
Server.Port = os.Getenv("PORT")
|
Server.Port = os.Getenv("PORT")
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ const (
|
|||||||
AppName = "navidrome"
|
AppName = "navidrome"
|
||||||
|
|
||||||
LocalConfigFile = "./navidrome.toml"
|
LocalConfigFile = "./navidrome.toml"
|
||||||
|
DefaultDbPath = "navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL"
|
||||||
InitialSetupFlagKey = "InitialSetup"
|
InitialSetupFlagKey = "InitialSetup"
|
||||||
|
|
||||||
JWTSecretKey = "JWTSecret"
|
JWTSecretKey = "JWTSecret"
|
||||||
|
|||||||
Reference in New Issue
Block a user