Configure reverse proxy and ports for nginx