-
-
Timezone:}
- action={
-
- }
- />
+
+
+
-
-
- >
- }
- bottomLabel={
-
-
-
- }
- >
-
}
- >
- Peers
-
-
}
- >
- Mirrors
-
-
}
+ }
+ bottomRow={
+ <>
+
+
+ Timezone:}
+ action={
+
+ }
+ />
+
+
+
+ >
+ }
+ bottomLabel={
+
+
+
+ }
>
- Alert Configuration
-
-
+
}
+ >
+ Peers
+
+
}
+ >
+ Mirrors
+
+
}
+ >
+ Alert Configuration
+
+
);
}
diff --git a/ui/middleware.ts b/ui/middleware.ts
index 4ca57b44eb..81dcfdbcf4 100644
--- a/ui/middleware.ts
+++ b/ui/middleware.ts
@@ -1,17 +1,15 @@
-import { NextRequest, NextResponse } from 'next/server';
-import { withAuth } from 'next-auth/middleware';
import { Configuration } from '@/app/config/config';
+import { withAuth } from 'next-auth/middleware';
+import { NextRequest, NextResponse } from 'next/server';
const authMiddleware = withAuth({});
-
export default async function middleware(req: NextRequest, resp: NextResponse) {
if (Configuration.authentication.PEERDB_PASSWORD) {
return (authMiddleware as any)(req);
}
}
-
export const config = {
matcher: [
// Match everything other than static assets