-
Find some webserver. SSH into it.
-
Get a domain name and make sure you properly point it to your server.
-
Install Nginx, python and pip on the server
-
Clone this repo onto your server.
-
Run a HTTPS enabled Nginx reverse proxy for the eventlet WSGI server that will run on localhost:8080. You need to have HTTPS configured for your your server in order for this to work as WebRTC will not operate on a HTTP protocol. Use these nginx-config files as a guide to creating your own server configuration on Nginx for your domain. Also note that I used Let's Encrypt to manage my ssl cert. Look at these Nginx resources for more information on Nginx server configuration.
-
Change directory into root file of this repository. Run
pip install .
to install all needed packages. -
Run the webRTCserver.py file
python webRTCserver.py
. You can check now that on your localhost:8080 that a page is loading. Note that if you are on the web you need to have HTTPS set up. -
Last word I should mention that this has no stun and turn server implementation, only using googles stun server which is not meant for production. More info on WebRTC in the real world