[mirotalksfu] - #185 Fix host url and typo, update dep (thank you nazar-pc)

هذا الالتزام موجود في:
Miroslav Pejic
2024-12-09 11:21:49 +01:00
الأصل eb75be33eb
التزام 69925f9479
5 ملفات معدلة مع 12 إضافات و11 حذوفات

عرض الملف

@@ -55,7 +55,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.45
* @version 1.6.46
*
*/
@@ -64,7 +64,7 @@ const { auth, requiresAuth } = require('express-openid-connect');
const cors = require('cors');
const compression = require('compression');
const socketIo = require('socket.io');
const https = require('httpolyglot');
const httpolyglot = require('httpolyglot');
const mediasoup = require('mediasoup');
const mediasoupClient = require('mediasoup-client');
const http = require('http');
@@ -123,14 +123,14 @@ const corsOptions = {
methods: config.server?.cors?.methods || ['GET', 'POST'],
};
const httpsServer = https.createServer(options, app);
const io = socketIo(httpsServer, {
const server = httpolyglot.createServer(options, app);
const io = socketIo(server, {
maxHttpBufferSize: 1e7,
transports: ['websocket'],
cors: corsOptions,
});
const host = 'https://' + 'localhost' + ':' + config.server.listen.port; // config.server.listen.ip
const host = config.server.hostUrl || `http://localhost:${config.server.listen.port}`;
const jwtCfg = {
JWT_KEY: (config.jwt && config.jwt.key) || 'mirotalksfu_jwt_secret',
@@ -1148,7 +1148,7 @@ function startServer() {
// START SERVER
// ####################################################
httpsServer.listen(config.server.listen.port, () => {
server.listen(config.server.listen.port, () => {
log.log(
`%c

عرض الملف

@@ -41,6 +41,7 @@ module.exports = {
colors: true,
},
server: {
hostUrl: '', // default to http://localhost:port
listen: {
// app listen on
ip: '0.0.0.0',

عرض الملف

@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
"version": "1.6.45",
"version": "1.6.46",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {
@@ -65,8 +65,8 @@
"cors": "2.8.5",
"crypto-js": "4.2.0",
"discord.js": "^14.16.3",
"dompurify": "^3.2.2",
"express": "4.21.1",
"dompurify": "^3.2.3",
"express": "4.21.2",
"express-openid-connect": "^2.17.1",
"fluent-ffmpeg": "^2.1.3",
"he": "^1.2.0",

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.45
* @version 1.6.46
*
*/

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.45
* @version 1.6.46
*
*/