Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
webrtcdevelopment_signaller
Advanced tools
Readme
websocket based signaller for handling webrtc offer answer handshake for a comm SaaS platform
Signaller to mange the SDP offer/answer for webrtc app on socket.io. To be used while deploying - webrtcdevelopment https://github.com/altanai/webrtc/
Download the npm module
npm i webrtcdevelopment_signaller
or Clone from the git repo
git clone git@github.com:altanai/webrtcsignaller.git
One the source is download import the server lib and start the server
Recommended node version >=v612 Can manage node versions using nvm / node version manager
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
source ~/.profile
check nvm version
nvm --version
nvm list
To install a specific node version
vm install v6.2.1
Downloading https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-x64.tar.xz...
######################################################################## 100.0%
WARNING: checksums are currently disabled for node.js v4.0 and later
manpath: can't set the locale; make sure $LC_* and $LANG are correct
Now using node v6.2.1 (npm v3.9.3)
check updated node verson
node -v
v6.2.1
To start signaller socket.io server
node server --ssl --port=8085
First download forever
npm install forever -g
start forever with options secure server and port
forever start server.js --ssl --port=8085
start using the ecosystem config file
~/webrtcsignaller$ pm2 start ecosystem.config.js
[PM2][WARN] Applications signaller not running, starting...
[PM2] App [signaller] launched (1 instances)
┌─────┬──────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼──────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ signaller │ default │ 2.0.0 │ cluster │ 30115 │ 0s │ 0 │ online │ 0% │ 14.3mb │ ubuntu │ enabled │
└─────┴──────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
see status of running apps
pm2 list
┌─────┬──────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼──────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ signaller │ default │ 2.0.0 │ cluster │ 30115 │ 3s │ 0 │ online │ 0% │ 31.8mb │ ubuntu │ enabled │
└─────┴──────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
to see the process reports
pm2 reprt
Further more check if ports are listening
lsof -i | grep 8085
> PM2 21865 ubuntu 31u IPv4 18120035 0t0 TCP *:8085 (LISTEN)
to see list of running processes in forever
forever list
openssl req -nodes -newkey rsa:2048 -keyout brightchats.key -out brightchat.csr
Then upload the CSR in ssl providing websites like go addy and either generate or re-key the certs
To see system usage
df -h
> Filesystem Size Used Avail Use% Mounted on
udev 492M 12K 492M 1% /dev
tmpfs 100M 376K 99M 1% /run
/dev/xvda1 7.8G 5.9G 1.6G 80% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 497M 0 497M 0% /run/shm
none 100M 0 100M 0% /run/user
to see free memory
free -m
total used free shared buffers cached
Mem: 992 841 151 17 64 325
-/+ buffers/cache: 450 541
Swap: 0 0 0
checking avaible CPU cores
grep -c ^processor /proc/cpuinfo
> 1
To see help related to server
node server.js --help
You can manage configuration in the "config.json" file.
Or use following commands:
node server.js
node server.js --port=9002
node server.js --port=9002 --ssl
node server.js --port=9002 --ssl --sslKey=/home/ssl/ssl.key --sslCert=/home/ssl/ssl.crt
Here is list of all config parameters:
--port=80
This parameter allows you set any custom port.
--ssl
This parameter is shortcut for --isUseHTTPs=true
--isUseHTTPs=true
This parameter allows you force HTTPs. Remove/Skip/Ignore this parameter to use HTTP.
--sslKey=path
This parameter allows you set your domain's .key file.
--sslCert=path
This parameter allows you set your domain's .crt file.
--sslCabundle=path
This parameter allows you set your domain's .cab file.
--version
Check RTCMultiConnection version number.
--dependencies
Check all RTCMultiConnection dependencies.
--autoRebootServerOnFailure=false
Disable auto-restart server.js on failure.
--dirPath=/var/www/html/
Directory path that is used for HTML/CSS/JS content delivery.
--homePage=/demos/Video-Conferencing.html
Open a specific demo instead of loading list of demos.
--enableAdmin=true
Enable /admin/ page.
--adminUserName=username
/admin/ page's username.
--adminPassword=password
/admin/ page's password.
Create an issues https://github.com/altanai/webrtc/issues https://github.com/altanai/webrtc/issues
MIT
Issue1 Permission denied (publickey).
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'xx' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "xx": bad permissions
ubunut@exx: Permission denied (publickey).
solution create a instance for example ec2 instance on AWS and create a ssh key. change the ownership permission for the key and the ssh using it
chmod 600 key.pem
ssh -v -i key.pem ubuntu@ec2-address
FAQs
webrtc socket.io signaller
The npm package webrtcdevelopment_signaller receives a total of 3 weekly downloads. As such, webrtcdevelopment_signaller popularity was classified as not popular.
We found that webrtcdevelopment_signaller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.