← back to Projects Agentabrams

README.md

26 lines

# projects.agentabrams.com — Project Viewer

Left rail lists every buildable project; clicking one loads its **live site** in
the right panel. Same schema as `all.agentabrams.com`'s domain viewer: a
searchable list drives an iframe fed by a credential-injecting reverse proxy
(`/site/<slug>/…`) that applies the unified `admin:DW2024!` upstream and strips
`X-Frame-Options`/CSP so any fleet site frames cleanly.

## Data
`projects.json` (regenerate: `node build-projects.js`) merges two sources:
- **local** — a live pm2 process with a listening port → `http://127.0.0.1:PORT`
- **public** — a public domain from the project's `.deploy.conf` HEALTH_URL → `https://<domain>`
Public domain wins when a project has both.

## Run
```
PORT=9702 node server.js         # http://127.0.0.1:9702  (Basic admin:DW2024!)
```

## Deploy note — DOMAIN COLLISION
`projects.agentabrams.com` currently resolves to the **build-pages** git-journal
site (`~/Projects/build-pages`, Kamatera `/root/public-projects/build-pages`).
Publishing this viewer to that domain would replace it — that decision is
Steve-gated and NOT done here. Options: replace build-pages, use another
subdomain (e.g. `projectviewer.agentabrams.com`), or keep this internal-only.