🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
feat: better SQLite3 configuration, to avoid DB contention
Deluan1d886156d55f
diff --git a/conf/configuration.go b/conf/configuration.goindex 876344996..e87a038f3 100644--- a/conf/configuration.go+++ b/conf/configuration.go@@ -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")diff --git a/consts/consts.go b/consts/consts.goindex c9147d59c..5b8481791 100644--- a/consts/consts.go+++ b/consts/consts.go@@ -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"