WhiteNoise vs Nginx for Python Static Files
Decide when WhiteNoise is enough for Django static files and when nginx should serve them, so your Python app stays fast without extra moving parts.
NetBay journal
Practical guides for Linux, containers, CI/CD, self-hosting, and running VPS infrastructure from Netbay Engineering.
599 articles · 24 topics
Decide when WhiteNoise is enough for Django static files and when nginx should serve them, so your Python app stays fast without extra moving parts.
Split admin, billing, and provisioning from request serving on one VPS so a hung control action cannot stall the path your customers actually hit.
Ship ops-agent guardrails that actually hold: tool allowlists, default dry-run, and a human approval file before any write hits a Linux VPS.
Run containers as a non-root user on a read-only root filesystem with tmpfs for scratch space, and cut a wide slice out of container escape risk.
Ship encrypted directory dumps to object and cloud storage with rclone sync, and keep the off-site copy of your 3-2-1 both cheap and automatic.
A repeatable drill that walks a slow VPS from the uptime command and top down to a hot function, so you fix the real bottleneck instead of chasing a symptom.
Release cadence, support windows, apt versus dnf, AppArmor versus SELinux, and upgrade mechanics: the practical gaps between Ubuntu Server and Fedora Server.
Use ProtectSystem, PrivateTmp, NoNewPrivileges, and friends to sandbox any service, then verify the restrictions with systemd-analyze security.
Stop improvising rollbacks in incidents. Define, script, and rehearse rollback in CI so a bad release is undone fast and safely.
Build multi-arch container images with Docker Buildx in GitHub Actions, tag them with metadata-action, and push to a registry with layer caching.
Webhooks fail, arrive twice, and get spoofed. Sign payloads, retry with backoff, and make handlers idempotent so clients build on them safely.
Automate image and dependency updates with watchtower and Renovate so your self-hosted stack stays patched without breaking your careful setup.