A switchable trace (DATA/perf/trace.on or PERF_TRACE=1) records every request's phases (stat, open, first read, disk vs network wait), browser resource timings, page-turn waits and flow stalls, a cold storage probe, event-loop lag, scans and scraper calls as JSONL. tools/perf-report.js says which phase slow loads spend their time in; tools/perf-bench.js simulates readers. READ_AHEAD (default on) reads an opened chapter's pages, then the next chapter's, into the OS cache so a NAS's cold reads stop reaching the browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
558 B
INI
40 lines
558 B
INI
# Explicit allowlist; runtime state and credentials never enter image layers.
|
|
**
|
|
!package.json
|
|
!server.js
|
|
!library.js
|
|
!reading-direction.js
|
|
!chapter-identity.js
|
|
!chapter-dates.js
|
|
!catalog.js
|
|
!backup.js
|
|
!reading-analytics.js
|
|
!reading-access.js
|
|
!moments.js
|
|
!public/
|
|
!public/**
|
|
!greatest/
|
|
!greatest/**
|
|
!discovery/
|
|
!discovery/**
|
|
!runtime/
|
|
!runtime/**
|
|
!scraper/
|
|
!scraper/**
|
|
!peering/
|
|
!peering/**
|
|
!perf/
|
|
!perf/**
|
|
!tools/
|
|
!tools/**
|
|
scraper/.cache/**
|
|
scraper/logs/**
|
|
scraper/*.manifest.json
|
|
**/*.log
|
|
**/*.tmp
|
|
**/test/**
|
|
**/node_modules/**
|
|
**/.env*
|
|
**/*.pem
|
|
**/*.key
|