feat(cmd): plumb SubsonicConfig into server.New

This commit is contained in:
2026-04-19 17:40:24 +00:00
parent 644af30a86
commit 9f325cf309
+4 -1
View File
@@ -17,6 +17,7 @@ import (
"git.fabledsword.com/bvandeusen/minstrel/internal/library" "git.fabledsword.com/bvandeusen/minstrel/internal/library"
"git.fabledsword.com/bvandeusen/minstrel/internal/logging" "git.fabledsword.com/bvandeusen/minstrel/internal/logging"
"git.fabledsword.com/bvandeusen/minstrel/internal/server" "git.fabledsword.com/bvandeusen/minstrel/internal/server"
"git.fabledsword.com/bvandeusen/minstrel/internal/subsonic"
) )
func main() { func main() {
@@ -72,7 +73,9 @@ func run() error {
}() }()
} }
srv := server.New(logger, pool, scanner) srv := server.New(logger, pool, scanner, subsonic.Config{
AllowPlaintextPassword: cfg.Subsonic.AllowPlaintextPassword,
})
httpServer := &http.Server{ httpServer := &http.Server{
Addr: cfg.Server.Address, Addr: cfg.Server.Address,
Handler: srv.Router(), Handler: srv.Router(),