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]>
This commit is contained in:
1 parent
eeb5039a3c
commit
b0b733d5e1
88 files changed
+19321
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Copy to /etc/error-reporting/env (mode 640, root:root or root:error-reporting).
|
||||
# systemd parses this as EnvironmentFile= — use KEY=value only, no "export".
|
||||
|
||||
# --- Checkout root: this repository (contains database/, ingest-api/, admin-ui/, ...) ---
|
||||
ER_REPO_ROOT=/opt/errors.bitreport.pt
|
||||
# Legacy variable name (still read by run-migrate.sh if ER_REPO_ROOT is unset):
|
||||
# OTT_ROOT=/opt/errors.bitreport.pt
|
||||
|
||||
# --- PostgreSQL (single LXC: localhost; split DB LXC: set host accordingly) ---
|
||||
# URL-encode special characters in user/password per PostgreSQL libpq rules.
|
||||
DATABASE_URL=postgres://postgres:[email protected]:5432/error_reporting
|
||||
|
||||
# --- ingest-api ---
|
||||
PORT=3041
|
||||
NODE_ENV=production
|
||||
INGEST_RATE_LIMIT_MAX=300
|
||||
INGEST_RATE_LIMIT_WINDOW_MS=60000
|
||||
|
||||
# --- collector-worker ---
|
||||
INGEST_BASE_URL=http://127.0.0.1:3041
|
||||
TICK_INTERVAL_MS=3000
|
||||
SOURCE_REFRESH_MS=15000
|
||||
HTTP_FETCH_TIMEOUT_MS=15000
|
||||
MAX_BACKOFF_EXPONENT=8
|
||||
|
||||
# --- admin-ui (Next.js server-side API calls) ---
|
||||
ERROR_REPORTING_ADMIN_API_BASE=http://127.0.0.1:3041
|
||||
# ERROR_REPORTING_UI_DEMO=1
|
||||
|
||||
# --- Demo / staging only: token must match seed SQL for project-alpha HTTP fixture ---
|
||||
# ER_COLLECTOR_PROJECT_ALPHA_TOKEN=er_tst_a_secret_one
|
||||
# COLLECTOR_DEFAULT_INGEST_TOKEN=
|
||||
Reference in new issue
Block a user