diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index f730f4c..0f96689 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -1,11 +1,70 @@ +import Link from "next/link"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; + +const envVars = [ + { + name: "DATABASE_URL", + desc: "PostgreSQL connection string for scans, users, and monitors.", + }, + { + name: "REDIS_URL", + desc: "Redis for scan queue workers (optional on small VPS).", + }, + { + name: "NEXTAUTH_SECRET", + desc: "Session encryption secret — rotate after deploy if leaked.", + }, + { + name: "NEXTAUTH_URL", + desc: "Public app URL (e.g. http://your-server-ip).", + }, + { + name: "IPINFO_TOKEN", + desc: "Optional token for richer geo/IP enrichment.", + }, + { + name: "SCAN_RATE_LIMIT_PER_HOUR", + desc: "Per-IP scan throttle (default from .env.example).", + }, +]; + export default function SettingsPage() { return ( -
-

Settings

-

- Configure IPINFO_TOKEN, SCAN_RATE_LIMIT_PER_HOUR, and database URLs via environment - variables on your server. Theme toggle is in the header. +

+

Settings

+

+ Server configuration lives in environment variables. Theme toggle is in the header.

+ +
+ {envVars.map((v) => ( + + + + {v.name} + .env + + + {v.desc} + + ))} +
+ + + + Account & monitoring + + + + + +
); }