dotCloud custom node.js service nginx config

I setup a custom nodejs service using the https://github.com/dotcloud/node-on-dotcloud . But now it seems like it doesn't have nginx. How to setup nginx for a custom nodejs service?

First, a cautionary statement: the dotCloud 'custom' service is still in beta. So the answer I give you now could change in the future.

When you create a 'custom' type nodejs service, your service container also has nginx available, but it is not running. To get nginx to run, you will need to:

  1. Add an nginx.conf file to the root of your application.

  2. Add a 'process' to your dotcloud.yml file to start up nginx:

    process: nginx -c your_configuration_file

where *your_configuration_file* is the full path to your nginx.conf

I hope that helps!

/Andy