Sanitize codebase, reorganize docs, and add missing deploy files

Remove dead code identified in docs/SANITIZATION-REVIEW.md:
- app/blueprints/content_old.py and app/blueprints/playlist.py
- app/models/group.py, app/utils/nginx_config_reader.py
- orphaned templates (content_list, edit_content, upload_content,
  player_page) and the related group/Template references

Result: 6 blueprints, 82 routes, no dead modules or orphan templates.

Add files that deploy.sh and docker-entrypoint.sh already require but
which were never tracked:
- https_manager.py       (referenced by deploy.sh, migrate_network.sh,
                          docker-entrypoint.sh)
- Caddyfile.example      (seeded by deploy.sh; its absence aborts deploy)

Relocate generated Graphify artifacts from graphify-out/ to
docs/graphify-out/ (110 files, no content change) and archive the
superseded docs under docs/.

Ignore hygiene:
- ignore ad-hoc .env backups (.env.bak*) — they contain live secrets
- keep the pre-sanitization snapshots (docs/legacy code/,
  docs/old_code_documentation/) on disk but out of the repo

Fix .env.example: drop a duplicated config block, genericize the
hardcoded host IP, and document HOSTNAME_INTERNAL.
This commit is contained in:
2026-09-11 12:18:34 +03:00
parent 1c5186463a
commit 46602f1933
226 changed files with 3999 additions and 15737 deletions
+163
View File
@@ -0,0 +1,163 @@
# Knowledge Graph Index
> Auto-generated by graphify. Start here — read community articles for context, then drill into god nodes for detail.
**631 nodes · 1162 edges · 41 communities**
---
## System Architecture Flowchart
```mermaid
flowchart TD
C0["Community 0 (90 nodes)"]
C1["Community 1 (80 nodes)"]
C2["Community 2 (68 nodes)"]
C3["Community 3 (62 nodes)"]
C4["Community 4 (55 nodes)"]
C5["Community 5 (54 nodes)"]
C6["Community 6 (51 nodes)"]
C7["Community 7 (42 nodes)"]
C8["Community 8 (24 nodes)"]
C9["Community 9 (21 nodes)"]
C10["Community 10 (20 nodes)"]
C11["Community 11 (19 nodes)"]
C12["Community 12 (8 nodes)"]
C13["Community 13 (4 nodes)"]
C14["Community 14 (2 nodes)"]
C15["Community 15 (2 nodes)"]
C16["Community 16 (2 nodes)"]
C17["Community 17 (2 nodes)"]
C18["Community 18 (2 nodes)"]
C19["Community 19 (2 nodes)"]
C20["Community 20 (1 nodes)"]
C21["Community 21 (1 nodes)"]
C22["Community 22 (1 nodes)"]
C23["Community 23 (1 nodes)"]
C24["Community 24 (1 nodes)"]
C25["Community 25 (1 nodes)"]
C26["Community 26 (1 nodes)"]
C27["Community 27 (1 nodes)"]
C28["Community 28 (1 nodes)"]
C29["Community 29 (1 nodes)"]
C30["Community 30 (1 nodes)"]
C31["Community 31 (1 nodes)"]
C32["Community 32 (1 nodes)"]
C33["Community 33 (1 nodes)"]
C34["Community 34 (1 nodes)"]
C35["Community 35 (1 nodes)"]
C36["Community 36 (1 nodes)"]
C37["Community 37 (1 nodes)"]
C38["Community 38 (1 nodes)"]
C39["Community 39 (1 nodes)"]
C40["Community 40 (1 nodes)"]
C1 -->|27 edges| C3
C2 -->|25 edges| C3
C2 -->|25 edges| C0
C3 -->|25 edges| C1
C1 -->|21 edges| C0
C6 -->|16 edges| C1
C6 -->|16 edges| C3
C3 -->|14 edges| C0
C6 -->|14 edges| C0
C5 -->|9 edges| C3
C2 -->|6 edges| C5
C1 -->|5 edges| C6
C9 -->|5 edges| C0
C3 -->|5 edges| C5
C1 -->|3 edges| C11
C7 -->|3 edges| C0
C5 -->|3 edges| C6
C11 -->|2 edges| C1
C0 -->|2 edges| C9
C2 -->|2 edges| C7
C7 -->|2 edges| C3
C5 -->|2 edges| C0
C0 -->|2 edges| C7
C1 -->|1 edges| C4
C1 -->|1 edges| C10
C11 -->|1 edges| C0
C11 -->|1 edges| C3
C9 -->|1 edges| C5
C5 -->|1 edges| C4
C5 -->|1 edges| C7
C5 -->|1 edges| C1
C3 -->|1 edges| C7
C3 -->|1 edges| C10
C6 -->|1 edges| C7
C7 -->|1 edges| C8
C6 -->|1 edges| C5
C6 -->|1 edges| C11
C6 -->|1 edges| C10
C7 -->|1 edges| C6
C7 -->|1 edges| C1
C0 -->|1 edges| C4
C10 -->|1 edges| C6
C10 -->|1 edges| C11
C0 -->|1 edges| C10
C5 -->|1 edges| C2
C3 -->|1 edges| C2
```
## Communities
(sorted by size, largest first)
- [[Community 0]] — 90 nodes
- [[Community 1]] — 80 nodes
- [[Community 2]] — 68 nodes
- [[Community 3]] — 62 nodes
- [[Community 4]] — 55 nodes
- [[Community 5]] — 54 nodes
- [[Community 6]] — 51 nodes
- [[Community 7]] — 42 nodes
- [[Community 8]] — 24 nodes
- [[Community 9]] — 21 nodes
- [[Community 10]] — 20 nodes
- [[Community 11]] — 19 nodes
- [[Community 12]] — 8 nodes
- [[Community 13]] — 4 nodes
- [[Community 14]] — 2 nodes
- [[Community 15]] — 2 nodes
- [[Community 16]] — 2 nodes
- [[Community 17]] — 2 nodes
- [[Community 18]] — 2 nodes
- [[Community 19]] — 2 nodes
- [[Community 20]] — 1 nodes
- [[Community 21]] — 1 nodes
- [[Community 22]] — 1 nodes
- [[Community 23]] — 1 nodes
- [[Community 24]] — 1 nodes
- [[Community 25]] — 1 nodes
- [[Community 26]] — 1 nodes
- [[Community 27]] — 1 nodes
- [[Community 28]] — 1 nodes
- [[Community 29]] — 1 nodes
- [[Community 30]] — 1 nodes
- [[Community 31]] — 1 nodes
- [[Community 32]] — 1 nodes
- [[Community 33]] — 1 nodes
- [[Community 34]] — 1 nodes
- [[Community 35]] — 1 nodes
- [[Community 36]] — 1 nodes
- [[Community 37]] — 1 nodes
- [[Community 38]] — 1 nodes
- [[Community 39]] — 1 nodes
- [[Community 40]] — 1 nodes
## God Nodes
(most connected concepts — the load-bearing abstractions)
- [[log_action()]] — 116 connections
- [[PlayerEdit]] — 99 connections
- [[PlayerUser]] — 74 connections
- [[Playlist]] — 33 connections
- [[CaddyConfigGenerator]] — 31 connections
- [[HTTPSConfig]] — 30 connections
- [[Content]] — 24 connections
- [[User]] — 19 connections
- [[create_app()]] — 13 connections
- [[Models package for digiserver-v2.]] — 13 connections
---
*Generated by [graphify](https://github.com/safishamsi/graphify)*