config tests added,
titles tests added, .env file support added with dotenv, README.md file updated for .evn file support, database lost connection bug crash fixed, session server run_session long timeout bug fixed, links module added, webrtc_proc json arguments added, app_proc stdout and stderr support added, infinity app_proc spawn freeze bug fixed
This commit is contained in:
@@ -4,7 +4,7 @@ const {get_app_path} = require('../modules/titles')
|
||||
const not_found_error = require('../../lib/src/http/errors/not_found_error')
|
||||
const server_error = require('../../lib/src/http/errors/server_error')
|
||||
const {run_webrtc, run_app} = require('../modules/run_process')
|
||||
const {external_url} = require('../../config')
|
||||
const {create_websocket_url} = require('../modules/links')
|
||||
|
||||
|
||||
const run_session = async (req, res, next) => {
|
||||
@@ -42,8 +42,8 @@ const run_session = async (req, res, next) => {
|
||||
next(new server_error('can not add session to database'))
|
||||
return
|
||||
}
|
||||
|
||||
res.json({websocket_url:`wss://${external_url}${webrtc_port}/`})
|
||||
|
||||
res.json({websocket_url:create_websocket_url(webrtc_port)})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user