Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup signalmaster in windows #122

Open
ramutl87 opened this issue Jan 17, 2018 · 2 comments
Open

How to setup signalmaster in windows #122

ramutl87 opened this issue Jan 17, 2018 · 2 comments

Comments

@ramutl87
Copy link

Hello everyone,

I'm new to simpleWebRTC and signalmaster, locally i have implemented and it works fine.

In my hosting server at the time of production wanted to replace sandbox signaling server with my own signaling server url.

So as per the steps given in https://github.com/andyet/signalmaster , i have followed and everything works to be fine upto step 4, but got stuck while generating SSL.

i am using windows server, not getting how to run the below shell command in node.js

$ ./scripts/generate-ssl-certs.sh
$ NODE_ENV=production node server.js

Any help is highly appreciated

Thanks in advance

@mortenbirkelund
Copy link

As you are on windows you probably dont have either Bash or Openssl installed which is required for running the script ./scripts/generate-ssl-certs.sh.

I ended up solving it this way.

  1. I ran these lines on a Linux installation i had access to
mkdir -p ./config/sslcerts
openssl genrsa -out ./config/sslcerts/key.pem 1024
openssl req -new -key ./config/sslcerts/key.pem -out ./config/sslcerts/csr.pem
openssl x509 -req -days 9999 -in ./config/sslcerts/csr.pem -signkey ./config/sslcerts/key.pem -out ./config/sslcerts/cert.pem
rm ./config/sslcerts/csr.pem
chmod 600 ./config/sslcerts/key.pem ./config/sslcerts/cert.pem
  1. I copied the new sslcerts folder containing key.pem and cert.pem to my signalmaster installation on windows and placed the folder inside the config folder.

  2. I sat the environmental variable in the windows system
    https://stackoverflow.com/questions/9249830/how-can-i-set-node-env-production-on-windows

Now i am able of running signalmaster by node.js

@mortenbirkelund
Copy link

And i used qckwinsvc to run signalmaster automatically on windows startup, as you can read here.
https://stackoverflow.com/questions/20445599/auto-start-node-js-server-on-boot

1 Install qckwinsvc
npm install -g qckwinsvc

2 Create the service
qckwinsvc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants