GlamHub

GlamHub is a content management and publishing platform running on the MEGATRON cluster. It features a modern frontend, headless CMS, analytics, workflow automation, and AI-powered features.

Overview

PropertyValue
Primary Domainglamhub.m3gatr0n.com
Namespacesglamhub (prod), glamhub-dev (dev)
FrontendAstro 6
CMSDirectus 11
AnalyticsUmami
AutomationN8N
LLM InferenceOllama
Vector SearchQdrant

URLs

ServiceProduction URLDev URL
Frontendglamhub.m3gatr0n.comdev-glamhub.m3gatr0n.com
Admin (Directus)admin-glamhub.m3gatr0n.comdev-admin-glamhub.m3gatr0n.com
CMS APIcms-glamhub.m3gatr0n.comdev-cms-glamhub.m3gatr0n.com
N8N Workflowsn8n-glamhub.m3gatr0n.comdev-n8n-glamhub.m3gatr0n.com

Architecture

                    ┌─────────────────────────────────────┐
                    │          glamhub namespace           │
                    │                                     │
  glamhub.m3gatr0n  │  ┌──────────┐    ┌──────────────┐  │
  ─────────────────>│  │ Astro 6  │───>│ Directus 11  │  │
                    │  │ Frontend │    │ Headless CMS │  │
                    │  └──────────┘    └──────┬───────┘  │
                    │                         │          │
  admin-glamhub     │  ┌──────────────────────┘          │
  ─────────────────>│  │                                 │
                    │  v                                  │
                    │  ┌──────────┐    ┌──────────────┐  │
                    │  │ Database │    │   Umami      │  │
                    │  │ (Postgres│    │  Analytics   │  │
                    │  │  or SQL) │    └──────────────┘  │
                    │  └──────────┘                      │
                    │                                     │
  n8n-glamhub       │  ┌──────────┐    ┌──────────────┐  │
  ─────────────────>│  │   N8N    │───>│   Ollama     │  │
                    │  │ Workflows│    │  LLM Engine  │  │
                    │  └──────────┘    └──────────────┘  │
                    │                                     │
                    │  ┌──────────────┐                   │
                    │  │   Qdrant     │                   │
                    │  │ Vector Store │                   │
                    │  └──────────────┘                   │
                    └─────────────────────────────────────┘

Component Details

Astro 6 (Frontend)

  • Static site generation with server-side rendering
  • Modern web framework for content-driven sites
  • Connected to Directus for dynamic content

Directus 11 (Headless CMS)

  • API-first content management
  • Admin dashboard at admin-glamhub.m3gatr0n.com
  • RESTful and GraphQL APIs
  • Role-based access control

Umami (Analytics)

  • Privacy-focused web analytics
  • Lightweight alternative to Google Analytics
  • Tracks page views, events, and user sessions

N8N (Workflow Automation)

  • Visual workflow builder
  • Connects to Ollama for AI-powered content workflows
  • Scheduled tasks and event-driven automation
  • Accessible at n8n-glamhub.m3gatr0n.com

Ollama (LLM Inference)

  • Local LLM serving on port 11434
  • Used by N8N for content generation, summarization, and processing
  • Also available in the ai-ml namespace for other workloads
  • GPU-accelerated inference using RTX 3090

Qdrant (Vector Database)

  • Vector similarity search engine
  • Stores embeddings for semantic search over content
  • Supports RAG (Retrieval-Augmented Generation) workflows with Ollama

Environments

EnvironmentNamespacePurpose
ProductionglamhubLive site serving real users
Developmentglamhub-devActive development and testing

Quick Commands

# Check pods in glamhub namespace
kubectl get pods -n glamhub

# Check services
kubectl get svc -n glamhub

# View logs for Directus
kubectl logs -n glamhub -l app=directus --tail=100 -f

# Restart a component
kubectl rollout restart deployment/astro -n glamhub