Bridge between cm-application and janus-gateway. Once running it should:
- Provide WebSocket proxy for connections between Janus javascript client and janus-gateway server.
- Provide HTTP Server for accepting cm-application requests.
- Send cm-application api requests on certain events.
Install as npm package:
npm install cm-janus
Run services using:
bin/cm-janus
cm-janus is based on single configuration file written in yaml format. Default config is present under bin/config.yaml
.
You can provide different config file using -c
option (e.g. bin/cm-janus -c /path/to/my/config/yaml
). New config will completely overwrite old one. Old one won't be used for defaults.
Config format:
logPath: 'log/app.log' # path to log file (relative to working dir)
httpServer:
port: 8888 # port for incoming http api requests
apiKey: '123fish' # token for authenticating incoming http request
webSocketServer:
port: 8188 # port for incoming WebSocket connections
janus:
webSocketAddress: 'ws://198.23.87.26:8188/janus' # janus-gateway webSocket address
httpAddress: 'http://198.23.87.26:8188/janus' # janus-gateway http address
cmApi:
baseUrl: 'http://www.cm.dev/rpc/null' # cm-application address
apiKey: '123fish' # token for authentication, sent with each http request
cmApplication:
path: '/home/cm' # path to local cm application
jobManager:
jobsPath: '/tmp/jobs' # place where job definitions are stored
tempFilesPath: '/tmp/jobs/temp-files/' # jobs handlers' temp files