by RBecker » Sun Apr 02, 2023 1:58 am
Apache and PHP aren't the issue, because the same reports ran without going through Cloudflare complete successfully. But once you click the SUBMIT button on a report, Cloudflare starts a 100 second timer in which it waits for a reply from the server. With the way reports currently render, Apache produces no reply to the client within that specified time, and Cloudflare throws an HTTP 524 error. That 100 second countdown is hard set by Cloudflare and can't be modified. Hence why I said some intermediate page displayed while the report loads should be sufficient and the report can appear in the same space the loading indicator was. Maybe similar to the lead loader that displays the load info then produces the BAD records on the page in real time as the load processes.
Alternatively, and possibly easier to do, would be to add a setting that lets you define an alternative hostname that reports pull from that is not proxied through Cloudflare. For example, our install runs on app.mycompany.com, and is what we want to protect with CF. If there was an "Alternate Report Execution URL" setting or similar, that could be set to reports.mycompany.com and does not proxy via CF. When the SUBMIT button is clicked on a report, the user would be redirected to reports.mycompany.com where the actual report executes.
Managed & Dedicated ViciDial Hosting | VoIP Trunking and Termination | https://www.dial-fusion.com/
Main Cluster: 21 Agent Servers | Dedicated DB and Separate Reports Server | 2 Web Servers | HAProxy Load Balancing | Dedicated Archive Server