add reverse proxy support