API and worker report error log lines, unhandled 5xx and crashes to the hub with the photoreport ingest key (ERROR_REPORTING_TOKEN); browsers (app, desktop webview, sites), Next server renders and the print agent send through POST /v1/client-errors so the key stays on the server. Repeats folded, rate-limited. docs/errors.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
58 lines
2.6 KiB
Bash
58 lines
2.6 KiB
Bash
NODE_ENV=production
|
|
PORT=3000
|
|
LOG_LEVEL=info
|
|
APP_VERSION=dev
|
|
DATABASE_URL=postgresql://photoreport:CHANGE_ME@pr-db:5432/photoreport
|
|
# At least 32 random characters, e.g. `openssl rand -base64 48`
|
|
JWT_SECRET=
|
|
ACCESS_TOKEN_TTL_SEC=900
|
|
REFRESH_TOKEN_TTL_DAYS=30
|
|
CORS_ORIGINS=https://app.next.photoreport.pt,tauri://localhost,http://tauri.localhost
|
|
APP_PUBLIC_URL=https://app.next.photoreport.pt
|
|
ALLOW_SIGNUP=false
|
|
|
|
# Library and ingest
|
|
STORAGE_ROOT=/srv/photoreport-data/storage
|
|
# SFTPGo home folders live under INGEST_ROOT/<ftp login>/
|
|
INGEST_ROOT=/srv/photoreport-data/ingest
|
|
INGEST_SCAN_INTERVAL_MS=2000
|
|
# How much runs at once is sized from the container's CPUs and memory (logged as "capacity" when the worker
|
|
# starts). Leave INGEST_CONCURRENCY, ARCHIVE_CONCURRENCY, DELIVERY_CONCURRENCY, FACES_PROCESSES and RENDER_PROCESSES
|
|
# unset; set one only to pin it.
|
|
# INGEST_CONCURRENCY=
|
|
FILE_URL_TTL_SEC=3600
|
|
|
|
# Delivery (Nextcloud). 32 random bytes, base64: openssl rand -base64 32
|
|
DELIVERY_SECRET_KEY=
|
|
# DELIVERY_CONCURRENCY=
|
|
|
|
# Face recognition (organizations with biometrics switched on). Build: cargo build --release -p photoreport-faces
|
|
# Models: infra/faces/download-models.sh /srv/photoreport-data/models
|
|
FACES_BIN=/srv/photoreport/target/release/photoreport-faces
|
|
FACES_MODELS_DIR=/srv/photoreport-data/models
|
|
FACES_EMBEDDER=auraface
|
|
# FACES_PROCESSES=
|
|
# Shirt-number model trained with workers/ml/jersey (optional; leave empty until you have one)
|
|
JERSEY_MODEL_DIR=
|
|
# Develop: replays edits and renders edited thumbnails and deliveries (workers/render).
|
|
RENDER_BIN=/srv/photoreport/target/release/photoreport-render
|
|
# RENDER_PROCESSES=
|
|
# SFTPGo external auth hook key (same value in the hook URL ?key=...)
|
|
# SFTPGO_HOOK_KEY=
|
|
# Shop: mail with the download link (optional) and the Stripe API (only changed for local tests).
|
|
# SMTP_URL=smtps://user:[email protected]:465
|
|
MAIL_FROM=PhotoReport <[email protected]>
|
|
|
|
# Desktop shell updates (apps/desktop): Gitea API base of this repo and a read-only token for its releases.
|
|
# DESKTOP_RELEASES_API=https://git.bitreport.pt/api/v1/repos/BitReport.pt/photoreport
|
|
# DESKTOP_RELEASES_TOKEN=
|
|
# Public address of this API (installer links for the desktop updater).
|
|
# API_PUBLIC_URL=https://api.next.photoreport.pt
|
|
|
|
# Errors to errors.bitreport.pt (BitReport's error hub; Paperclip picks them up and fixes them). The ingest key of
|
|
# the "photoreport" project there; without it nothing is sent. API, worker and the browsers (through the API's
|
|
# /v1/client-errors) all report with it.
|
|
# ERROR_REPORTING_TOKEN=
|
|
# ERROR_REPORTING_ENDPOINT=https://errors.bitreport.pt
|
|
# ERROR_REPORTING_DISABLED=0
|