Treating the NGINX_VHOSTS_CUSTOM_CONFIGURATION file as a ruby template file (erb), and exposing PORT env var when compiling the nginx directives from the template