Made auth middleware turn skip timeout if maintenance mode is on

This commit is contained in:
2025-02-17 23:31:09 +11:00
parent 556c93fc49
commit 9ea58b0961
4 changed files with 38 additions and 28 deletions

View File

@@ -120,7 +120,7 @@ func run(ctx context.Context, w io.Writer, args map[string]string) error {
return errors.Wrap(err, "getStaticFiles")
}
srv := server.NewServer(config, logger, conn, &staticFS)
srv := server.NewServer(config, logger, conn, &staticFS, &maint)
httpServer := &http.Server{
Addr: net.JoinHostPort(config.Host, config.Port),
Handler: srv,