Files
errors.bitreport.pt/deploy/lxc/env.example
T
David Santos 1099cbb724
CI / Test ingest-api (push) Has been cancelled
CI / Test api (push) Has been cancelled
CI / Lint and typecheck admin-ui (push) Has been cancelled
CI / Validate Docker build (push) Has been cancelled
collector-worker: bound ingest POST with INGEST_PUSH_TIMEOUT_MS (BIT-2600)
Add AbortController timeout to pushEventsToIngest (error ingest_push_timeout),
env INGEST_PUSH_TIMEOUT_MS (default 60s, minimum 1s), Vitest coverage, and
compose/env.example documentation.

Made-with: Cursor
2026-04-12 11:51:03 +00:00

48 lines
2.1 KiB
Plaintext

# 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
# --- BIT-465 version.json (written by deploy/lxc/write-version-json.sh; nginx can alias this path) ---
# Use the same tree as ER_REPO_ROOT (systemd EnvironmentFile= does not expand ${ER_REPO_ROOT}).
ER_VERSION_JSON_PATH=/opt/errors.bitreport.pt/deploy/lxc/runtime/version.json
# ER_VERSION_PROJECT=errors.bitreport.pt
# ER_VERSION_BUILT_BY=BitReport.pt
# --- MariaDB / MySQL (single LXC: localhost; split DB LXC: set host in URL) ---
# Percent-encode special characters in user/password (RFC 3986) when building the URL.
DATABASE_URL=mysql://er_app:[email protected]:3306/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
INGEST_PUSH_TIMEOUT_MS=60000
MAX_BACKOFF_EXPONENT=8
# --- admin-ui (Next.js server-side API calls) — target the Fastify `api/` service (default PORT 3200) ---
ERROR_REPORTING_ADMIN_API_BASE=http://127.0.0.1:3200
# Ingest API backend for Next.js reverse-proxy rewrites (/v1/*, /health).
# On a single LXC this defaults to http://127.0.0.1:3041 (no change needed).
# INGEST_API_URL=http://127.0.0.1:3041
# --- Paperclip error loop / CRM-compatible GET /api/error-monitoring/recent-errors (Fastify validates query) ---
# Same names as CRM: copy one secret into PAPERCLIP_ERROR_API_KEY or DEBUG_VIEW_ERRORS_KEY on the runner.
# ERROR_RESOLVE_API_KEY=CHANGE_ME
# DEBUG_VIEW_ERRORS_KEY=
# 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=