1
Browser requests https://docs.ipnoelp.com/docs/dochub/architecture/overview
↓
2
nginx terminates SSL, sets proxy headers (X-Real-IP, X-Forwarded-Proto), forwards to localhost:3002
↓
3
Express middleware runs: Helmet (security) → Morgan (logging) → Session (PG store) → Passport (auth check)
↓
4
Auth check — Is session valid? If not, redirect to /auth/login for Google OAuth
↓
5
Docs route extracts path: project=dochub, subproject=architecture, page=overview
↓
6
MarkdownService reads content/dochub/architecture/overview.md, parses frontmatter (gray-matter), renders HTML (markdown-it + highlight.js)
↓
7
TemplateService wraps content in layout with sidebar navigation, breadcrumbs, and table of contents
↓
8
Complete HTML page returned to browser with inline CSS and syntax-highlighted code blocks