simplewebrtc / signalmaster

simple socket.io server for webrtc signaling
Other
1.31k stars 486 forks source link

Installing Signalmaster on production server #67

Closed Oluwafemikorede closed 8 years ago

Oluwafemikorede commented 8 years ago

hello,

I installed signalmaster on my centos and I tried running node server.js and it shows server runs on localhost:8888, how do I change my config or settings to make server reflect my production url

fippo commented 8 years ago

the server should be listening on all interface by default -- https://github.com/andyet/signalmaster/blob/master/server.js#L29-L34 is slightly misleading about that.

Typically you will want to run this behind nginx or haproxy. See the socket.io documentation for this

Oluwafemikorede commented 8 years ago

@fippo will changing https://localhost: on https://github.com/andyet/signalmaster/blob/master/server.js#L29-L34 to my url resolve the issue?

And how can I "run this behind nginx or haproxy." my server runs on apache

fippo commented 8 years ago

there should be no issue, you can ignore console.log output

xdumaine commented 8 years ago

You don't need to change that, it's just a logged value. It's already listening on the interface. Provided your DNS is configured, your URL will work.

Oluwafemikorede commented 8 years ago

I followed the installation steps but I am not getting "Welcome to socket.io" when I point my browser to the url, any reason why this might be happening

fippo commented 8 years ago

the README is outdated :-( If you get a {"code":0,"message":"Transport unknown"}

from http://yourservernamehere:8888/socket.io/ you should be good

Oluwafemikorede commented 8 years ago

thanks, it works, so my signalling service will now be something like this right...

http://yourservernamehere:8888/

but how do I change it to https, running this command

./scripts/generare-ssl-certs.sh

throws this error

-bash: ./scripts/generare-ssl-certs.sh: No such file or directory

Oluwafemikorede commented 8 years ago

thnaks everyone, all problems fixed now, I think the documentation needs to be updated. I can close the issue now.

canturker commented 6 years ago

@Oluwafemikorede how can you solved issue? I have same problem and cant find solution