[hapi] Make hapi configurable