git clone https://github.com/quentinmay/realtime-livestream-server.git
cd realtime-livestream-server
npm install
mv config.json.example config.json
{
"sslKey": "/path/to/sslkey",
"sslCert": "/path/to/sslCert",
"streamKey": "streamkey",
"streamSecret": "streamsecret",
"streamPort": "8081",
"wsPort": "443"
}
- sslKey/sslCert: Given by your SSL provider. This is what allows the data to be encrypted.
- streamKey: Acts as a sort of "stream id". This will be given to your friends so they can access the stream.
- streamSecret: Basically the streams password. Should only be known to the person who is providing the live stream.
Follow database installation from https://www.npmjs.com/package/geoip-lite
sudo node index.js
- Pick one: