Hi everyone, I am currently testing a local staging environment for server-side GTM on an edge mini-PC before migrating the container over to a managed Stape hosting plan. I followed a Linux deployment guide, flashed Debian using the disk imaging utility referenced on that website, and spun up the standard sGTM Docker image with our custom tagging URL.
Everything looks healthy internally, but when sending test events from our production website through a Cloudflare proxy, we encounter intermittent 502 Bad Gateway responses. The container logs show that the GA4 client occasionally drops incoming requests whenever multiple concurrent hits arrive, even though the CPU and memory usage remain well below critical thresholds.
Has anyone seen this kind of proxy handshake failure or header drop when running local Docker setups? I would appreciate any insight into recommended Cloudflare SSL settings or specific container environment variables required to keep the connection persistent.