mirror of
https://github.com/navidrome/navidrome.git
synced 2025-08-10 00:52:20 +00:00
fix(server): allow changing local login background url
This commit is contained in:
@@ -119,7 +119,7 @@ func startServer(ctx context.Context) func() error {
|
||||
a.MountRouter("Profiling", "/debug", middleware.Profiler())
|
||||
}
|
||||
if strings.HasPrefix(conf.Server.UILoginBackgroundURL, "/") {
|
||||
a.MountRouter("Background images", consts.DefaultUILoginBackgroundURL, backgrounds.NewHandler())
|
||||
a.MountRouter("Background images", conf.Server.UILoginBackgroundURL, backgrounds.NewHandler())
|
||||
}
|
||||
return a.Run(ctx, conf.Server.Address, conf.Server.Port, conf.Server.TLSCert, conf.Server.TLSKey)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ type Handler struct {
|
||||
func NewHandler() *Handler {
|
||||
h := &Handler{}
|
||||
go func() {
|
||||
_, _ = h.getImageList(context.Background())
|
||||
_, _ = h.getImageList(log.NewContext(context.Background()))
|
||||
}()
|
||||
return h
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user