Add support for proxying from https