configure https for prod, use http in stage