fix(server): allow changing local login background url

This commit is contained in:
Deluan
2024-09-27 15:18:20 -04:00
parent 1fa245d141
commit 5be73d404f
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
}