README aktualisiert: neue Funktionen, Installation, Tests, Datenschutz
- neue Funktionen in Deutsch und Englisch ergänzt - Installation mit requirements.txt und neuen .env-Variablen, Hinweis zu --insecure bei DEBUG=False - neue Abschnitte Tests sowie Betrieb & Datenschutz (Cronjob ip_bereinigen) - doppelte Changelog-Liste durch Verweis auf Changelog.md ersetzt, fehlende Details in Changelog.md übernommen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ab841ddc59
commit
1091c90c1e
2 files changed
+92
-53
No files matched your search
@@ -48,6 +48,12 @@ Seit den jüngsten Commits wurde das Archiv um mehrere Praxisfunktionen erweiter
|
||||
* **Medien- und Reporting-Funktionen:** Es gibt einen Reporting-Mechanismus für fehlerhafte Videos, inklusive Zählung, Anti-Spam-Maßnahmen und Statusanzeigen für YouTube/Jellyfin.
|
||||
* **Player-Verbesserungen:** Lautstärke wird für Jellyfin und YouTube gespeichert, damit die Wiedergabe beim erneuten Aufruf konsistent bleibt.
|
||||
* **UI-Polishing & Ordnung:** Das Frontend wurde deutlich überarbeitet, inklusive besserer Layouts, klarerer Überschriften und einer konsistenten Routing-/Template-Struktur.
|
||||
* **Intern-Dashboard mit Diagrammen:** Kennzahlen und Chart.js-Diagramme zu Folgen und Fragen pro Jahr, Kategorien, Einsender-Herkunft und Team-Statistiken; das Video-Badge zeigt YouTube- und Jellyfin-Videos getrennt.
|
||||
* **Wikipedia-Profilbilder mit lokalem Cache:** Bilder werden einmal heruntergeladen, lokal gespeichert und nur alle 7 Tage per SHA1-Prüfsumme auf Änderungen geprüft.
|
||||
* **Datenschutz:** Cookie-Banner, YouTube nur nach Einwilligung (Zwei-Klick-Lösung), alle Bibliotheken und Schriften lokal statt über CDN/Google Fonts, Impressum und Datenschutzerklärung, automatische Löschung gespeicherter Melde-IPs nach 30 Tagen; die API gibt Einsender-Namen nur gekürzt aus.
|
||||
* **Sicherheit & Qualität:** HTML-Maskierung in der Suche, abgesicherte Video-Meldung (IP nur von eigenen Proxys, Transaktion), automatisierte Tests.
|
||||
|
||||
Alle Änderungen mit Zeitstempel stehen in der [Changelog.md](Changelog.md).
|
||||
|
||||
### 🚀 Installation & Setup
|
||||
So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und einer `.env`-Datei:
|
||||
@@ -65,7 +71,7 @@ So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und ei
|
||||
3. Abhängigkeiten installieren
|
||||
```bash
|
||||
python -m pip install --upgrade pip
|
||||
pip install Django djangorestframework python-dotenv mysqlclient requests beautifulsoup4
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
Falls du eine MariaDB/MySQL-Installation nutzt, können zusätzlich die System-Header nötig sein:
|
||||
```bash
|
||||
@@ -87,8 +93,19 @@ So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und ei
|
||||
|
||||
JELLYFIN_URL='http://localhost:8096'
|
||||
JELLYFIN_API_KEY='dein_jellyfin_api_key'
|
||||
|
||||
# Eigene Reverse-Proxys (kommagetrennt); nur deren X-Forwarded-For wird ausgewertet
|
||||
TRUSTED_PROXIES=
|
||||
|
||||
# Impressum & Datenschutz (leer = Platzhalter auf der Seite)
|
||||
IMPRESSUM_NAME=''
|
||||
IMPRESSUM_STRASSE=''
|
||||
IMPRESSUM_ORT=''
|
||||
IMPRESSUM_EMAIL=''
|
||||
# Aufbewahrungsdauer der Server-Logs in Tagen (erscheint in der Datenschutzerklärung)
|
||||
LOG_AUFBEWAHRUNG_TAGE=
|
||||
```
|
||||
Wichtig: Die Werte müssen zur eigenen Umgebung passen. Die Datei wird automatisch per `python-dotenv` geladen.
|
||||
Wichtig: Die Werte müssen zur eigenen Umgebung passen. Die Datei wird automatisch per `python-dotenv` geladen. Der Entwicklungsserver lädt bei Änderungen an der `.env` automatisch neu.
|
||||
5. Datenbank migrieren
|
||||
```bash
|
||||
python manage.py migrate
|
||||
@@ -101,7 +118,24 @@ So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und ei
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
Danach ist die App unter `http://127.0.0.1:8000` erreichbar.
|
||||
Danach ist die App unter `http://127.0.0.1:8000` erreichbar. Mit `DEBUG=False` liefert der Entwicklungsserver CSS, JavaScript und Bilder nur mit `--insecure` aus:
|
||||
```bash
|
||||
python manage.py runserver 0.0.0.0:8010 --insecure
|
||||
```
|
||||
|
||||
### 🧪 Tests
|
||||
Die Tests laufen auf einer SQLite-Datenbank im Arbeitsspeicher, der MySQL-User braucht dafür keine zusätzlichen Rechte:
|
||||
```bash
|
||||
python manage.py test gd intern
|
||||
```
|
||||
|
||||
### 🔒 Betrieb & Datenschutz
|
||||
* **Melde-IPs löschen:** Gespeicherte IP-Adressen von Video-Meldungen werden nach 30 Tagen gelöscht, der Meldezähler bleibt erhalten. Dafür täglich per Cron ausführen:
|
||||
```cron
|
||||
30 3 * * * cd /pfad/zum/projekt && venv/bin/python manage.py ip_bereinigen >> /var/log/gd_ip_bereinigen.log 2>&1
|
||||
```
|
||||
* **Externe Inhalte:** Bootstrap, Bootstrap Icons, Chart.js und Montserrat liegen unter `assets/vendor/`. Die einzige externe Verbindung ist YouTube, und die wird erst nach Einwilligung über den Cookie-Banner oder per Klick auf „Video laden“ aufgebaut.
|
||||
* **Impressum & Datenschutzerklärung:** `/gd/impressum/` und `/gd/datenschutz/`. Die persönlichen Angaben kommen aus der `.env` und landen nicht im Repository.
|
||||
|
||||
### ⚠️ Disclaimer
|
||||
Dieses Projekt ist ein rein privates Fan-Projekt und dient Archiv- sowie statistischen Zwecken.
|
||||
@@ -158,6 +192,12 @@ Recent commits expanded the archive with several practical improvements focused
|
||||
* **Media & reporting features:** A reporting workflow for broken videos was added, including counting logic, anti-spam measures, and status indicators for YouTube/Jellyfin.
|
||||
* **Player improvements:** Playback volume is saved for Jellyfin and YouTube so the viewing experience remains consistent across reloads.
|
||||
* **UI polishing & structure:** The frontend was refined with clearer layouts, better hierarchy, and a more consistent routing/template setup.
|
||||
* **Internal dashboard with charts:** Key figures and Chart.js charts for episodes and questions per year, categories, sender origin, and team statistics; the video badge shows YouTube and Jellyfin videos separately.
|
||||
* **Wikipedia profile images with local cache:** Images are downloaded once, stored locally, and checked for changes via SHA1 checksum only every 7 days.
|
||||
* **Data protection:** Cookie banner, YouTube only after consent (two-click solution), all libraries and fonts served locally instead of via CDN/Google Fonts, legal notice (Impressum) and privacy policy, automatic deletion of stored report IPs after 30 days; the API only returns shortened sender names.
|
||||
* **Security & quality:** HTML escaping in search, hardened video reporting (IP only from own proxies, transaction), automated tests.
|
||||
|
||||
All changes with timestamps are listed in [Changelog.md](Changelog.md) (German).
|
||||
|
||||
### 🚀 Installation & Setup
|
||||
Follow these steps to install the project locally in a clean Python environment using a `.env` configuration file:
|
||||
@@ -175,7 +215,7 @@ Follow these steps to install the project locally in a clean Python environment
|
||||
3. Install required dependencies
|
||||
```bash
|
||||
python -m pip install --upgrade pip
|
||||
pip install Django djangorestframework python-dotenv mysqlclient requests beautifulsoup4
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
On Linux, MySQL support may require system development packages:
|
||||
```bash
|
||||
@@ -196,8 +236,19 @@ Follow these steps to install the project locally in a clean Python environment
|
||||
|
||||
JELLYFIN_URL='http://localhost:8096'
|
||||
JELLYFIN_API_KEY='your_jellyfin_api_key'
|
||||
|
||||
# Own reverse proxies (comma-separated); only their X-Forwarded-For is trusted
|
||||
TRUSTED_PROXIES=
|
||||
|
||||
# Legal notice & privacy policy (empty = placeholder on the page)
|
||||
IMPRESSUM_NAME=''
|
||||
IMPRESSUM_STRASSE=''
|
||||
IMPRESSUM_ORT=''
|
||||
IMPRESSUM_EMAIL=''
|
||||
# Server log retention in days (shown in the privacy policy)
|
||||
LOG_AUFBEWAHRUNG_TAGE=
|
||||
```
|
||||
These values are loaded automatically via `python-dotenv`.
|
||||
These values are loaded automatically via `python-dotenv`. The development server reloads automatically when `.env` changes.
|
||||
5. Apply database migrations
|
||||
```bash
|
||||
python manage.py migrate
|
||||
@@ -210,7 +261,24 @@ Follow these steps to install the project locally in a clean Python environment
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
The app is then available at `http://127.0.0.1:8000`.
|
||||
The app is then available at `http://127.0.0.1:8000`. With `DEBUG=False`, the development server only serves CSS, JavaScript, and images when started with `--insecure`:
|
||||
```bash
|
||||
python manage.py runserver 0.0.0.0:8010 --insecure
|
||||
```
|
||||
|
||||
### 🧪 Tests
|
||||
Tests run on an in-memory SQLite database, so the MySQL user needs no extra privileges:
|
||||
```bash
|
||||
python manage.py test gd intern
|
||||
```
|
||||
|
||||
### 🔒 Operation & Data Protection
|
||||
* **Deleting report IPs:** Stored IP addresses from video reports are deleted after 30 days; the report counter is kept. Run daily via cron:
|
||||
```cron
|
||||
30 3 * * * cd /path/to/project && venv/bin/python manage.py ip_bereinigen >> /var/log/gd_ip_bereinigen.log 2>&1
|
||||
```
|
||||
* **External content:** Bootstrap, Bootstrap Icons, Chart.js, and Montserrat are located in `assets/vendor/`. The only external connection is YouTube, which is established only after consent via the cookie banner or a click on "Video laden".
|
||||
* **Legal notice & privacy policy:** `/gd/impressum/` and `/gd/datenschutz/`. Personal details come from `.env` and are not stored in the repository.
|
||||
|
||||
### ⚠️ Disclaimer
|
||||
This project is a purely private fan project for archival and statistical purposes.
|
||||
@@ -224,46 +292,7 @@ This system was developed exclusively for private use.
|
||||
|
||||
---
|
||||
|
||||
# Changelog - Genial Daneben Archive:
|
||||
# Changelog
|
||||
|
||||
## [Aktuell] - Feature-Updates aus der Git-History
|
||||
|
||||
### Added
|
||||
- **Kategorien & Fragedauer:** Neue Felder für Kategorien und die Laufzeit einzelner Fragen.
|
||||
- **Frage-Einsender:** Erfassung und Analyse des Einsenders pro Frage.
|
||||
- **Team-API:** Erweiterte API-Auskunft zu Teams, Statistiken und Wikipedia-/Profilbildern.
|
||||
- **Video-Reporting:** Meldung fehlerhafter Videos mit Zählung, Anti-Spam-Checks und Medienstatus.
|
||||
- **Player-Verbesserung:** Lautstärke wird für YouTube/Jellyfin gespeichert.
|
||||
|
||||
### Changed
|
||||
- **UI/UX-Polish:** Verbesserte Layouts, bessere Überschriften, konsistentere Templates und Routing.
|
||||
- **Internes Datenmanagement:** Mehrere Admin-/Analyseansichten für Kategorien, Einsender und Medienstatus.
|
||||
|
||||
### Fixed
|
||||
- **Datenkonsistenz:** Verbesserte Ausgabe im Detailbereich, Filterlogik und Darstellung statistischer Inhalte.
|
||||
|
||||
## [2026-02-16] - Weekly Sprint: Backend Tools & System Architecture
|
||||
|
||||
### Added
|
||||
- **Community Video Reporting System (gd app)**: Decentralized "Broken Video" reporting for YouTube.
|
||||
- **Crowdsourced Validation**: Implemented a "3-Strike Rule" via `melde_count`.
|
||||
- **Anti-Spam**: Integrated browser cookies and IP-logging (`reporter_ips`) to prevent manipulation.
|
||||
- **REST API Integration (gd app)**: Added v1 API functionality using Django REST Framework for Episode and Team data.
|
||||
- **Environmental Configuration (Main Project)**: Implemented `.env` support for secure management of sensitive data (Secret Keys, DB credentials, Jellyfin URLs).
|
||||
- **[WIP] Reporting Engine (Main Project)**: Added a test-phase script for automated report generation and data analysis.
|
||||
|
||||
### Changed
|
||||
- **Episode Management (intern app)**:
|
||||
- Enhanced the Episode Creation Form with a dedicated **Media Data section**.
|
||||
- Improved UX by enlarging the **Answer text fields** for better readability during data entry.
|
||||
- **Archive List (intern app)**: Updated the episode list view with status icons for **Jellyfin** and **YouTube** availability.
|
||||
- **Messaging & UI (gd app)**:
|
||||
- Relocated system messages to a fixed-position floating layer (Top-Right) with a 5-second auto-close timer.
|
||||
- Improved **Episode Detail layout** for better content hierarchy and video integration.
|
||||
- **Dashboard Refinement (gd app)**: Updated header information and adjusted statistics to exclude moderator/pseudo-member data.
|
||||
- **Global Styles (Base Template)**: Added JavaScript enhancements to support dynamic icon rendering across different modules.
|
||||
- **Namespace Migration**: Switched all routing to the `gd:` namespace for scalability.
|
||||
|
||||
### Fixed
|
||||
- **Database Schema**: Migrated `FolgenZusatzInfo` to include reporting metadata (`melde_count`, `gemeldet_am`, `reporter_ips`).
|
||||
- **Ranking Accuracy**: Refined SQL queries to correctly filter out "Hugo Egon Balder" and "Unknown" from solve-rate statistics.
|
||||
Alle Änderungen mit Zeitstempel stehen in der [Changelog.md](Changelog.md).
|
||||
All changes with timestamps are listed in [Changelog.md](Changelog.md) (German).
|
||||
Reference in new issue
Block a user