Merge branch 'feat/example-config' into RC1-1.0

master
Mészáros Mihály 2018-11-13 14:28:04 +01:00 committed by GitHub
commit d7a2832828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 3 deletions

View File

@ -3,13 +3,14 @@ Description=multiparty-meeting is a audio / video meeting service running in the
After=network.target After=network.target
[Service] [Service]
ExecStart=/usr/local/src/multiparty-meeting/server.js ExecStart=/usr/local/src/multiparty-meeting/server/server.js
Restart=always Restart=always
User=nobody User=nobody
Group=nogroup Group=nogroup
Environment=PATH=/usr/bin:/usr/local/bin Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production Environment=NODE_ENV=production
WorkingDirectory=/usr/local/src/multiparty-meeting WorkingDirectory=/usr/local/src/multiparty-meeting/server
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -15,7 +15,20 @@ module.exports =
key : `${__dirname}/certs/mediasoup-demo.localhost.key.pem` key : `${__dirname}/certs/mediasoup-demo.localhost.key.pem`
}, },
// Listening port for https server. // Listening port for https server.
listeningPort : 3443, listeningPort : 443,
// Any http request is redirected to https.
// Listening port for http server.
listeningRedirectPort : 80,
// STUN/TURN
turnServers : [
{
urls : [
'turn:example.com:443?transport=tcp'
],
username : 'example',
credential : 'example'
}
],
mediasoup : mediasoup :
{ {
// mediasoup Server settings. // mediasoup Server settings.