Files
errors.bitreport.pt/README.md
T
1sonhadorandPaperclip b0b733d5e1 feat(BIT-247): consolidate error reporting repo from OTT
Merge ingest-api, collector-worker, admin-ui, database/error_reporting, deploy/lxc,
docker-compose, and deployment docs into the dedicated repository. Paths updated
for repo root (ER_REPO_ROOT, systemd WorkingDirectory). Root README documents layout.

Co-Authored-By: Paperclip <[email protected]>
2026-03-22 18:20:27 +00:00

44 lines
1.6 KiB
Markdown

# errors.bitreport.pt
BitReport **central error reporting** platform: ingest API, collector worker, admin UI (incidents), PostgreSQL migrations, and optional **admin portal** (auth/RBAC) from BIT-183.
**Remote:** `https://git.bitreport.pt/BitReport.pt/errors.bitreport.pt.git`
**Tracking:** Paperclip **BIT-247** (migration from `OTT/error-reporting/`).
## Layout
| Path | Role |
|------|------|
| `ingest-api/` | Fastify HTTP ingest (BIT-154.x) |
| `collector-worker/` | Polls configured sources → ingest API |
| `admin-ui/` | Next.js operator UI (incidents) |
| `database/error_reporting/` | SQL migrations + dev seed (used by Compose + LXC) |
| `deploy/lxc/` | systemd, nginx examples, migrate script (no Docker) |
| `docker-compose.yml`, `.env.example` | Local / Proxmox Docker stack |
| `api/` | Fastify admin API — sessions, RBAC (BIT-183) |
| `web/` | Next.js admin login/UI for `api/` |
| `db/migrations/` | Admin-user schema (node-pg-migrate); distinct from `database/error_reporting/` |
| `docs/` | Permission matrix, deployment runbooks |
## Docker Compose (ingest stack)
From the **repository root**:
```bash
cp .env.example .env
docker compose up --build
curl -sf "http://127.0.0.1:${ER_PUBLISH_INGEST_PORT:-3041}/health"
```
## Docs
- Compose + TLS: [`docs/deployment/bitreport-error-reporting-compose-proxmox.md`](docs/deployment/bitreport-error-reporting-compose-proxmox.md)
- LXC + systemd: [`docs/deployment/bitreport-error-reporting-lxc-proxmox.md`](docs/deployment/bitreport-error-reporting-lxc-proxmox.md)
## Tests (local)
```bash
cd ingest-api && npm ci && npm test
cd ../api && npm ci && npm test
```