-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mirotalkc2c] - replace yamljs (deprecated) with js-yaml
- Loading branch information
1 parent
4fd1d91
commit f11fd34
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon: | ||
* @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.1.20 | ||
* @version 1.1.21 | ||
*/ | ||
|
||
require('dotenv').config(); | ||
|
@@ -25,14 +25,15 @@ const checkXSS = require('./xss.js'); | |
const path = require('path'); | ||
const ngrok = require('ngrok'); | ||
const app = express(); | ||
const fs = require('fs'); | ||
const logs = require('./logs'); | ||
const log = new logs('server'); | ||
const isHttps = process.env.HTTPS == 'true'; | ||
const port = process.env.PORT || 8080; | ||
const ServerApi = require('./api'); | ||
const yamlJS = require('yamljs'); | ||
const yaml = require('js-yaml'); | ||
const swaggerUi = require('swagger-ui-express'); | ||
const swaggerDocument = yamlJS.load(path.join(__dirname + '/api/swagger.yaml')); | ||
const swaggerDocument = yaml.load(fs.readFileSync(path.join(__dirname, '/api/swagger.yaml'), 'utf8')); | ||
const queryJoin = '/join?room=test&name=test'; | ||
const queryRoom = '/?room=test'; | ||
const packageJson = require('../package.json'); | ||
|
@@ -43,7 +44,6 @@ const nodemailer = require('./lib/nodemailer'); | |
let server; | ||
|
||
if (isHttps) { | ||
const fs = require('fs'); | ||
const keyPath = path.join(__dirname, 'ssl/key.pem'); | ||
const certPath = path.join(__dirname, 'ssl/cert.pem'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon: | ||
* @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.1.20 | ||
* @version 1.1.21 | ||
*/ | ||
|
||
const roomId = new URLSearchParams(window.location.search).get('room'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters