Skip to content

Commit

Permalink
feat: better SQLite3 configuration, to avoid DB contention
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Feb 28, 2020
1 parent faa2a97 commit 1d88615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/configuration.go
Expand Up @@ -83,7 +83,7 @@ func LoadFromFile(confFile string, skipFlags ...bool) {
os.Exit(2)
}
if Server.DbPath == "" {
Server.DbPath = filepath.Join(Server.DataFolder, "navidrome.db")
Server.DbPath = filepath.Join(Server.DataFolder, consts.DefaultDbPath)
}
if os.Getenv("PORT") != "" {
Server.Port = os.Getenv("PORT")
Expand Down
1 change: 1 addition & 0 deletions consts/consts.go
Expand Up @@ -6,6 +6,7 @@ const (
AppName = "navidrome"

LocalConfigFile = "./navidrome.toml"
DefaultDbPath = "navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL"
InitialSetupFlagKey = "InitialSetup"

JWTSecretKey = "JWTSecret"
Expand Down

0 comments on commit 1d88615

Please sign in to comment.