Skip to content

Set up your own WebSockets and Stun Servers

Rohit joshi edited this page Jan 10, 2021 · 1 revision

To set up your own Signaling Server, you need to purchase source from our Website. There are 2 ways to set up the source on your server, the fastest way is to set up with Docker.

How to set up Websocket and Stun Servers with docker🐳?

  • You need to create a docker network docker network create skyrockets-webrtc-network
  • Start the container via docker-compose up -d command
  • That's all :-)

How to set up WebSocket over SSL with Docker🔒?

  • open docker-compose.yml file and add
volumes:
    - ./ssl/path:/ssl
  • Open websocket/server.js file and add the path of SSL file.
var options = {
      key: fs.readFileSync("/ssl/privkey.pem"),
      cert: fs.readFileSync("/ssl/cert.pem"),
      ca: fs.readFileSync("/ssl/chain.pem")
 };
Clone this wiki locally