Cloudflare 522 on a Coolify VPS: How I Found the Real Cause
A step-by-step diagnosis of an intermittent Cloudflare 522 on a Coolify VPS: origin vs edge tests with curl, packet capture, a second network, and the fixes.
Automation, containers, CI/CD, cloud platforms, reverse proxies and running web services in production
A step-by-step diagnosis of an intermittent Cloudflare 522 on a Coolify VPS: origin vs edge tests with curl, packet capture, a second network, and the fixes.
Design and monitor API healthchecks with timeouts, dependency honesty, and alerts that wake the right human.
Use Docker Compose like an operator: pin images, map ports carefully, handle logs, restarts, and backups — without turning every app into a mesh demo.
Nginx 502 Bad Gateway means the upstream died or timed out. Walk through proxy_pass, PHP-FPM, sockets, and timeouts the way you actually debug at 2 AM.
Skip hello-world fluff. Build a real Ansible role that hardens SSH baselines, installs packages, and ships configs you can reuse across servers.
WordPress contact form not sending? Fix Cloudflare, reCAPTCHA, plugin conflicts, and SMTP — a practical checklist that works.
MongoDB connection management in AWS Lambda looks fine in a tutorial and falls apart under production traffic. Lambda containers appear and vanish by the hundreds; MongoDB expects long-lived TCP sockets. That mismatch is how Atlas connection graphs go vertical. Here’s the pattern I ship: no polling loops, no duplicate listeners, and no leaked connections on…