Deployment-Härtung + Podman-Container
- http.Server mit Timeouts (Slowloris) und Graceful Shutdown (SIGTERM) - Adresse und DB-Pfad per Env (KVER_ADDR, KVER_DB) - Security-Header global: nosniff, X-Frame-Options, Referrer-Policy, CSP - Upload-Requests hart auf 17 MB gedeckelt (MaxBytesReader statt nur Multipart-Speichergrenze) - Indizes für Feed-, Thread- und Vote-Queries - middleware.RealIP für Logging/Rate-Limit hinter dem Reverse-Proxy - Containerfile (Multi-Stage, Alpine, non-root) + Deploy-Doku in notes/ Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Nicht ins Image: lokale DB, Uploads, Backups, Werkzeug-Kram.
|
||||
.git
|
||||
.gitignore
|
||||
prod_backup/
|
||||
notes/
|
||||
venv/
|
||||
__pycache__/
|
||||
kver
|
||||
*.db
|
||||
*.db-shm
|
||||
*.db-wal
|
||||
*.db.bak
|
||||
static/media/
|
||||
migrate.sh
|
||||
Containerfile
|
||||
.containerignore
|
||||
Reference in New Issue
Block a user