You are referring to a server setting here which is unrelated to Cloudflare.
You simply need to make sure that your server sends a response within the given period, otherwise you will always run into this issue. Alternatively, you can upgrade to an Enterprise plan where the value is customisable up to ten minutes.