Only use ssl if the base url is https