Make http/https configurable, with https being the default