feat(ui): Silicon Valley-grade DevOps logistics workbench on /simulator, official high-res logo and zero marketing clutter

This commit is contained in:
Amirul Islam Redwan
2026-11-10 20:02:50 +00:00
parent 93b5d78a03
commit 2234543c2b
6 changed files with 982 additions and 2493 deletions
+9
View File
@@ -60,6 +60,7 @@ const HEALTH_HTML = path.join(APP_DIR, "health.html");
const MCP_EXPLORER_HTML = path.join(APP_DIR, "mcp_explorer.html");
const GUIDE_HTML = path.join(APP_DIR, "guide.html");
const SIMULATOR_HTML = path.join(APP_DIR, "simulator.html");
const ASSETS_DIR = path.join(APP_DIR, "assets");
/**
* F04 Helper: HTML entity escaping to prevent stored/reflected XSS.
@@ -168,6 +169,14 @@ app.use((req, res, next) => {
next();
});
// Static assets (official logo, favicons, branding)
app.use("/assets", express.static(ASSETS_DIR, { maxAge: "7d" }));
app.get("/favicon.ico", (_req, res) => {
res.sendFile(path.join(ASSETS_DIR, "courier-logo.jpg"), (err) => {
if (err && !res.headersSent) res.status(204).end();
});
});
app.use(optionalAuthMiddleware);
const mcpLimiter = createRateLimiter({ windowMs: 60 * 1000, max: 60, name: "MCP Protocol Gateway" });