Skip to content

content-server.py

Purpose

Flask-based HTTP server that serves the eco|monetize™ internal HTML dashboards (primary dashboard, content portal, ecosystem resources, subscription intelligence, subscription cost report, morning briefing, help). Exposes the dashboard suite via Tailscale.

Architecture

  • 734-line Flask application with OAuth, token injection, and route handling
  • SERVE_ROOT is the filesystem root from which it serves files — currently pointed at /Users/rhartley/ecomonetize/Project.Manager (old production path). Migration to /Users/rhartley/Claude/ with allowlist enforcement is pending as of 2026-04-14 (Jordan's work).
  • Runs via launchd as com.ecomonetize.content-server — currently healthy (PID 2180)
  • Serves through Tailscale on ai-factory.cheetah-mulley.ts.net:8080

Migration status (2026-04-14)

Jordan is migrating the SERVE_ROOT from the old production path to /Claude/ with an allowlist restricting exposure to: /dashboards/, /knowledge/ip/, /knowledge/company/tech-stack/, /knowledge/research/completed/. Sensitive paths (/system/, /operations/, /sessions/, /missions/, /inbox/, /scripts/) are excluded by default.

Owner

code.platform (going forward) — takes ownership after Jordan's partial migration completes.

  • [[primary-dashboard]], [[content-portal]], [[ecosystem-resources]], [[subscription-intelligence]], [[subscription-cost-report]], [[morning-briefing]], [[help-dashboard]] — all dashboards served by this
  • [[launchd]], [[tailscale]] — infrastructure
  • Task brief: /Claude/operations/reports/briefings/task-script-migration-2026-04-14.md