API Connection Reset

Hello all,

I am creating hosts by POSTing to /api/hosts. This works as expected,
however when the provisioning script takes too long to return Foreman
closes the connection and the client throws ECONNRESET, even though
provisioning does complete successfully. Is there a timeout on provisioning
I can set somewhere?