My nginx conf has some ruby on rails web servers I'm trying to setup a node 
server for the first time my node server is located at 
/home/myusername/node_modules/peer/bin/peerjs where peerjs is a filename 
The suggested use is to have the server listen on port 9000, so in my nginx 
conf i've created a server with  passenger_app_type node;    
passenger_startup_file peerjs; directives but what about the server root is 
supposed to be a path to my app's public directory It doesn't have a public 
directory, all it has is that path to the peerjs file so what should I put 
for root path?

server {
    listen 9000;
    server_name peerjs;

    # Tell Nginx and Passenger where your app's 'public' directory is
    #  root /usr/home/fugee/node_modules/peer;

    # Turn on Passenger
    passenger_enabled on;
    # Tell Passenger that your app is a Node.js app
    passenger_app_type node;
    passenger_startup_file peerjs;

Job board:
New group rules:
Old group rules:
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to