Money: private Documents page with admin-only file endpoint
All checks were successful
Deploy production / deploy (push) Successful in 2m32s
All checks were successful
Deploy production / deploy (push) Successful in 2m32s
Lists contracts/pension docs with written summaries, an inline viewer and download at /trackers/money/documents. Files and summaries live on the host (MONEY_DOCUMENTS_ROOT, bind-mounted read-only by deploy-remote.sh), never in git or static/; the file endpoint is admin-only (401/403) and private, no-store.
This commit is contained in:
12
README.md
12
README.md
@@ -267,6 +267,18 @@ are created by `npm run db:migrate:money-tracker`; apply that migration to each
|
||||
environment before deploying the new route. The deployment preflight checks for
|
||||
all nine tracker tables and the projection columns.
|
||||
|
||||
`/trackers/money/documents` lists private documents (contracts, pension rules) with a
|
||||
written summary, an inline viewer and a download. Nothing about them is in git: the
|
||||
files and the summaries live on the host in `MONEY_DOCUMENTS_ROOT` (default
|
||||
`/money-documents` when it exists, otherwise `~/money-documents`) as
|
||||
`documents.json` (`[{ id, title, category, date, pages, file, summary }]`, summary in
|
||||
Markdown) plus `files/<file>`. `scripts/deploy-remote.sh` bind-mounts
|
||||
`/home/stan/money-documents` read-only at `/money-documents` when it has a
|
||||
`documents.json`. Files are only streamed to admins via
|
||||
`/trackers/money/documents/<id>/file` (401 logged out, 403 for non-admins,
|
||||
`private, no-store`). To add one, copy the file into `files/` and add a manifest entry;
|
||||
no redeploy is needed.
|
||||
|
||||
Transactions can be entered manually or imported from a CSV or tab-separated
|
||||
export with `date,account,description,amount` headers. Dates accept
|
||||
`YYYY-MM-DD`, `DD/MM/YYYY`, or `Fri 1 Aug 2025`; amounts accept signed euros
|
||||
|
||||
Reference in New Issue
Block a user