Menu won't load when opening via reverse proxy (HAProxy)

That 502 Bad Gateway is from HAProxy.
The logs you shared were from suite’s apache. Instead, you need to look at the php error log, and the suite application error log. More info here: