I am currently running DietPI 9.5 - Debian on a Raspberry Pi 4. I have configured a reverse proxy or Cloudflare tunnel and successfully installed Mailcow following the provided documentation. While the tunnels appear to be set up correctly, I am encountering an issue where, upon attempting to log in (which sporadically works due to the website consistently displaying a 502 Bad Gateway error), I am immediately redirected back to the 502 error page. I have meticulously reviewed the logs but have not identified any significant issues. So what can I do to fix this problem?

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

In short yes, do not use Cloudflare :-D. Or make it work. :-D Today I was solving similar issue, when you proxy something (not CF,…) I put in the end of tunnel extra firewall. That sometime break this tunnel, because state of the firewall. I resolved it by increasing keep alive parameter on targeted server and enforcing proxy to keep alive whit lower TTL than targeted server, so tunnel is periodically β€œping” from proxy even when no one is using it. If this is your case, I do not know, if you are able to tweak CF, I do not know, sorry,… Writing just bc of similarity of our problems πŸ‘οΈ

PS: Im talking only about https trafic, CF in lower tiers does not support proxy for smtp traffic,..

No one is typing