The single-domain deployment (errors.bitreport.pt) routed all traffic through the admin-ui, whose auth middleware redirected /v1/ingest/events and /health to /login — making the ingest API unreachable from outside. - middleware.ts: pass through /v1/* and /health without auth redirect - next.config.ts: rewrite /v1/* and /health to ingest-api backend (INGEST_API_URL env, default http://127.0.0.1:3041) - docker-compose.yml: set INGEST_API_URL=http://ingest-api:3041 - env examples: document INGEST_API_URL - scripts/onboard-project.sh: generate project + ingest key SQL Paperclip-Agent: peter-spark Paperclip-Issue: BIT-750 Paperclip-Run: dc5b7949-b24d-4867-a2cd-cf4f47477ef8
Native LXC deploy (no Docker)
Scripts and unit files for running ingest-api, admin-ui, and collector-worker on Debian/Ubuntu LXC with MariaDB (or MySQL 8+) on the same CT or another host.
Authoritative runbook: docs/deployment/bitreport-error-reporting-lxc-proxmox.md.
| Path | Purpose |
|---|---|
env.example |
Template for /etc/error-reporting/env |
run-migrate.sh |
Apply migrations + seed (after MariaDB is up) |
write-version-json.sh |
Emit runtime/version.json (BIT-465); set ER_VERSION_JSON_PATH in env |
webhook-deploy.sh |
Example full promote: git pull, builds, write-version-json, verify, restarts |
verify.sh |
curl ingest /health; validates version.json when ER_VERSION_JSON_PATH is set |
systemd/*.service |
Unit files (adjust WorkingDirectory if not /opt/errors.bitreport.pt) |
nginx/*.conf.example |
TLS reverse proxy sketch |
Docker-based path remains in ../../docker-compose.yml and ../../docs/deployment/bitreport-error-reporting-compose-proxmox.md.
Nota: em alguns LXCs o git clone https://git.bitreport.pt/... falha sem credenciais (Gitea não expõe leitura anónima a partir de todas as redes). Alternativas: rsync/CI a partir de um host com clone, ou PAT read-only na URL (guardar fora do git).