Files
errors.bitreport.pt/deploy/lxc
David Santos b41f17886a chore(deploy): include Apr 2026 ingest migrations in LXC run-migrate
Add occurred_at stats and ingest key rate limit SQL to deploy/lxc/run-migrate.sh
so fresh and repeat LXC installs match docker-migrate ordering (BIT-771).

Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-771
Paperclip-Run: 9d930ca7-5aba-4b1b-906c-80677815557c
Made-with: Cursor
2026-04-04 01:03:10 +00:00
..

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).