xingxiang / cbsignal_uws

SwarmCloud signaling server using uWebSockets.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwarmCloud signaling server using uWebSockets.js

Configuration

See config/config.yaml

Run instructions

Run with Docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo docker run --name cbsignal_uws --net host --restart=unless-stopped -d cdnbye/cbsignal_uws:latest

Or run in cluster mode, make sure that redis server is running:

# docker run -p 6379:6379 --name my-redis -d redis
sudo docker run --name cbsignal_uws \
-e REDIS_URL=redis://127.0.0.1:6379 \
-e PORT=80 \
--net host --restart=unless-stopped -d cdnbye/cbsignal_uws:latest

You can enable SSL also, make a directory called "cert", then put your cert file in it, run:

sudo docker run --name cbsignal_uws \
-e REDIS_URL=redis://127.0.0.1:6379 \
-e TLS_PORT=443 -e CERT_PATH=cert/fullchain.cer -e KEY_PATH=cert/cert.key \
-v "$(pwd)"/cert:/cbsignal_uws/cert:ro \
--net host --restart=unless-stopped -d cdnbye/cbsignal_uws:latest

Run with Source

git clone https://github.com/swarm-cloud/cbsignal_uws.git
cd cbsignal_uws
npm install
npm run start

Get real-time information of signal service

GET /info

About

SwarmCloud signaling server using uWebSockets.js

License:Apache License 2.0


Languages

Language:JavaScript 99.7%Language:Dockerfile 0.3%