From 561dfb474d650a4e62348929581dc55d60c3b779 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 6 Jun 2025 18:42:13 +0200 Subject: [PATCH] [mirotalksfu] - update env, config and deps --- .env.template | 10 ++++++++-- app/src/Server.js | 2 +- app/src/config.template.js | 14 +++++++------- package.json | 10 +++++----- public/js/Brand.js | 2 +- public/js/Room.js | 4 ++-- public/js/RoomClient.js | 2 +- 7 files changed, 25 insertions(+), 19 deletions(-) diff --git a/.env.template b/.env.template index d471e741..65a3c324 100644 --- a/.env.template +++ b/.env.template @@ -101,7 +101,7 @@ HOST_PROTECTED=false # Enable host protection (true HOST_USER_AUTH=false # Enable user authentication (true|false) # Host users - Define host users in the format: username:password:displayName:allowedRooms (room1,room2...) -HOST_USERS="username:password:user:*|admin:admin:Admin:room1,room2|guest:guest:Guest:room1,room1" +HOST_USERS="username:password:User:*|admin:admin:Admin:room1,room2|guest:guest:Guest:room1,room1" # Endpoints HOST_USERS_FROM_DB=false # Use DB for user auth (true|false) @@ -120,8 +120,14 @@ PRESENTER_JOIN_FIRST=true # First joiner becomes present # 5. API Configuration # ---------------------------------------------------- -API_SECRET=mirotalksfu_default_secret # Secret for API authentication +API_KEY_SECRET=mirotalksfu_default_secret # Secret for API authentication API_ALLOW_STATS=true # Enable stats API (true|false) +API_ALLOW_MEETINGS=false # Allow meetings API endpoint (true|false) +API_ALLOW_MEETING=true # Allow single meeting API endpoint (true|false) +API_ALLOW_JOIN=true # Allow join API endpoint (true|false) +API_ALLOW_TOKEN=false # Allow token-based API authentication (true|false) +API_ALLOW_SLACK=true # Allow Slack integration via API (true|false) +API_ALLOW_MATTERMOST=true # Allow Mattermost integration via API (true|false) # ---------------------------------------------------- # 6. Third-Party Integrations diff --git a/app/src/Server.js b/app/src/Server.js index 52c83291..9ad67173 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -64,7 +64,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.8.60 + * @version 1.8.61 * */ diff --git a/app/src/config.template.js b/app/src/config.template.js index c69fb9f3..9ecff9cc 100644 --- a/app/src/config.template.js +++ b/app/src/config.template.js @@ -497,15 +497,15 @@ module.exports = { * - Webhook setup: See integration guides for Slack/Mattermost */ api: { - keySecret: process.env.API_SECRET || 'mirotalksfu_default_secret', + keySecret: process.env.API_KEY_SECRET || 'mirotalksfu_default_secret', allowed: { stats: process.env.API_ALLOW_STATS !== 'false', - meetings: false, - meeting: true, - join: true, - token: false, - slack: true, - mattermost: true, + meetings: process.env.API_ALLOW_MEETINGS === 'true', + meeting: process.env.API_ALLOW_MEETING !== 'false', + join: process.env.API_ALLOW_JOIN !== 'false', + token: process.env.API_ALLOW_TOKEN === 'true', + slack: process.env.API_ALLOW_SLACK !== 'false', + mattermost: process.env.API_ALLOW_MATTERMOST !== 'false', }, }, diff --git a/package.json b/package.json index 2592156f..b0f9dc5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.8.60", + "version": "1.8.61", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -57,11 +57,11 @@ "node": ">=18" }, "dependencies": { - "@aws-sdk/client-s3": "^3.821.0", - "@aws-sdk/lib-storage": "^3.821.0", + "@aws-sdk/client-s3": "^3.825.0", + "@aws-sdk/lib-storage": "^3.825.0", "@mattermost/client": "10.8.0", "@ngrok/ngrok": "1.5.1", - "@sentry/node": "^9.25.1", + "@sentry/node": "^9.27.0", "async-mutex": "^0.5.0", "axios": "^1.9.0", "chokidar": "^4.0.3", @@ -84,7 +84,7 @@ "mediasoup": "3.16.0", "mediasoup-client": "3.11.0", "nodemailer": "^7.0.3", - "openai": "^5.1.0", + "openai": "^5.1.1", "qs": "6.14.0", "sanitize-filename": "^1.6.3", "socket.io": "4.8.1", diff --git a/public/js/Brand.js b/public/js/Brand.js index 322127b6..25e2d9ad 100644 --- a/public/js/Brand.js +++ b/public/js/Brand.js @@ -64,7 +64,7 @@ let BRAND = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC SFU v1.8.60', + title: 'WebRTC SFU v1.8.61', html: `