added ssl support for reverse proxy