fix api server hostname
proxy API requests over HTTPS (instead of HTTP)