Documentation - Three levels: DOCS/General (overview, configuration), DOCS/Deployment (choose a method, first steps), details per method in Containers/ and System_Services/; new root README and DOCS/README map. - Remove superseded pages (Deployment.md, Deployment_Docker/Native.md, Index.md); split the two scenario guides by section. - Isolate the Timeweb/Hysteria2 records in DEPLOYMENTS/timeweb-hysteria2/ (not linked from DOCS, listed in .graphifyignore). - Add DOCS/code_review/ with a time-stamped analysis of the code base. Gatherer (BUG-02, BUG-03) - Session key (CN, address, connected_since_ts), baseline from the active_sessions snapshot, grace period for sessions missing from the status. - Status file integrity (TITLE/TIME/END) and freshness; a torn read skips the tick. - Cache applied after commit; main loop survives exceptions, backs off, and stops cleanly on SIGTERM/SIGINT; new client rows start with the first frame's totals; five tests. JWT signing key (SEC-01) - No built-in default: Core and Profiler refuse to start with a missing, placeholder or short (< 32) key; shipped config.ini has an empty value. - Same rule in install.sh, update.sh (issues a new key when missing or weak), docker lib/entrypoint; five tests, conftest.py for the test key. Each change has a plan and a summary under DOCS/Changes/. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
50 lines
4.0 KiB
Markdown
50 lines
4.0 KiB
Markdown
# Documentation refactoring: summary (2026-10-05)
|
|
|
|
Plan: [2026-10-05_Docs_Refactoring_PLAN.md](2026-10-05_Docs_Refactoring_PLAN.md).
|
|
|
|
## Result
|
|
|
|
| Category | Where | Content |
|
|
|---|---|---|
|
|
| General information | `DOCS/General/` | new `Overview.md` (components, ports, data, glossary), new `Configuration.md`, `Security_Architecture.md`, `Database_Migrations.md` |
|
|
| Installation methods | `DOCS/Deployment/README.md`, `First_Steps.md` | side-by-side comparison, a recommendation, rules common to both methods; the post-install path (sign in, account, PKI, VPN, start, first client, network) written once for both |
|
|
| Details: containers | `DOCS/Deployment/Containers/` | `README` (quick start, variants, requirements, install), `Operations`, `Reference`, `Troubleshooting` |
|
|
| Details: system services | `DOCS/Deployment/System_Services/` | `README` (quick start, supported systems, install per OS, verification), `Operations`, `Reference`, `Web_UI`, `Firewall`, `Nginx_Configuration`, `Service_Management`, `Troubleshooting` |
|
|
| Entry points | `README.md`, `DOCS/README.md` | the root README is short: what it is, install in three steps, a map; `DOCS/README.md` maps goals to pages |
|
|
| Changes | `DOCS/Changes/README.md` | the change log moved out of the root README |
|
|
|
|
The two long scenario files (261 and 493 lines) were split by sections; the text was moved as it is, only cross-references were updated.
|
|
|
|
## Isolated: Hysteria2 on Timeweb
|
|
|
|
`DEPLOYMENTS/timeweb-hysteria2/` (outside `DOCS/`): the chain manifest, the egress change, the host summary, the reboot test, the plan and both rollout records of the settings validation and privilege separation (they describe the rollout on that host). It has its own README; the general documentation does not link to it; the folder is listed in `.graphifyignore`. The host addresses, the account name and the certificate fingerprint now live only there.
|
|
|
|
Left in the general documentation on purpose: neutral technical mentions of the Hysteria2 tunnel as an example of an uplink (the firewall script and its change records) and two verification rows of the privilege-separation record. They contain no host data.
|
|
|
|
## Removed or replaced
|
|
|
|
| Removed | Why |
|
|
|---|---|
|
|
| `General/Deployment.md` | outdated (port 5000, `UI/client`, other variable name), contradicted the current guides; superseded by `Deployment/` |
|
|
| `General/Deployment_Docker.md`, `Deployment_Native.md` | pointers only (the native one carried an outdated quick start) |
|
|
| `General/Index.md` | replaced by `DOCS/README.md` |
|
|
| `Deployment/Scenario1_Containers.md`, `Scenario2_System_Services.md` | split into the two folders |
|
|
|
|
## Other fixes
|
|
|
|
- `Security_Architecture.md`: links to files on the author's Mac (`file:///Users/...`) replaced by repository-relative links; a link to a file that does not exist (`Setup2FA.vue`) turned into text.
|
|
- Comments in `deploy/*` scripts, `docker-compose*.yml` and the nginx template, and two runtime error messages (`deploy/allinone/entrypoint.sh`, `deploy/docker/lib.sh`), now point to the new pages. No logic changed (`bash -n` passes on all changed scripts); the all-in-one image picks up the new message at the next rebuild.
|
|
- The change records of 2026-09/10 keep their original wording; only their links were updated.
|
|
|
|
## Verification
|
|
|
|
- Every relative Markdown link and anchor in `README.md`, `DOCS/`, `DEPLOYMENTS/` and the component READMEs: 60 files, 0 problems.
|
|
- No document under `DOCS/` links to `DEPLOYMENTS/`.
|
|
- Facts of the new pages were taken from the previous guides and checked against the sources: UI menu and button names (`App.vue`, `PKIConfig.vue`, `ServerManagement.vue`, `Certificates.vue`), container NAT and forwarding (`entrypoint.sh`, compose files).
|
|
|
|
## Not done
|
|
|
|
- The newcomer path was **not** walked through on a clean host: the commands are those of the existing, previously tested guides.
|
|
- The knowledge graph is stale for the moved files: run `/graphify --update .`.
|
|
- Translation: all documents stay in English (the two Russian records live in `DEPLOYMENTS/`).
|