Updated README

master
Håvar Aambø Fosstveit 2019-04-04 09:50:47 +02:00
parent 417f7ec3e8
commit 2aed4cd1b8
1 changed files with 6 additions and 12 deletions

View File

@ -31,10 +31,10 @@ $ cd multiparty-meeting
$ cp server/config.example.js server/config.js $ cp server/config.example.js server/config.js
``` ```
* Copy `app/config.example.js` to `app/config.js` : * Copy `app/public/config.example.js` to `app/public/config.js` :
```bash ```bash
$ cp app/config.example.js app/config.js $ cp app/public/config.example.js app/public/config.js
``` ```
* Edit your two `config.js` with appropriate settings (listening IP/port, logging options, **valid** TLS certificate, etc). * Edit your two `config.js` with appropriate settings (listening IP/port, logging options, **valid** TLS certificate, etc).
@ -44,17 +44,10 @@ $ cp app/config.example.js app/config.js
```bash ```bash
$ cd app $ cd app
$ npm install $ npm install
$ export NODE_ENV=production $ npm run build
$ gulp dist
``` ```
This will build the client application and copy everythink to `server/public` from where the server can host client code to browser requests. This will build the client application and copy everythink to `server/public` from where the server can host client code to browser requests.
* Globally install `gulp-cli` NPM module (may need `sudo`):
```bash
$ npm install -g gulp-cli
```
* Set up the server: * Set up the server:
```bash ```bash
@ -68,7 +61,8 @@ $ npm install
* Run the Node.js server application in a terminal: * Run the Node.js server application in a terminal:
```bash ```bash
$ node server.js $ cd server
$ npm start
``` ```
* test your service in a webRTC enabled browser: `https://yourDomainOrIPAdress:3443/roomname` * test your service in a webRTC enabled browser: `https://yourDomainOrIPAdress:3443/roomname`
@ -95,7 +89,7 @@ $ systemctl enable multiparty-meeting
## Ports and firewall ## Ports and firewall
* 3443/tcp (default https webserver and signaling - adjustable in `server/config.js`) * 3443/tcp (default https webserver and signaling - adjustable in `server/config.js`)
* 3000/tcp (default `gulp live` port for developing with live browser reload, not needed in production enviroments - adjustable in app/gulpfile.js) * 4443/tcp (default `npm start` port for developing with live browser reload, not needed in production enviroments - adjustable in app/package.json)
* 40000-49999/udp/tcp (media ports - adjustable in `server/config.js`) * 40000-49999/udp/tcp (media ports - adjustable in `server/config.js`)
## TURN configuration ## TURN configuration