[mirotalk] - fix: add startup warning when API_KEY_SECRET or JWT_SECRET use default values

This commit is contained in:
Miroslav Pejic
2026-04-03 01:02:01 +02:00
parent 24899b9efa
commit 3fff3e5266
7 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# ====================================================
# MiroTalk P2P v.1.7.89 - Environment Configuration
# MiroTalk P2P v.1.7.90 - Environment Configuration
# ====================================================
# App environment
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* ==============================================
* MiroTalk P2P v.1.7.89 - Configuration File
* MiroTalk P2P v.1.7.90 - Configuration File
* ==============================================
*
* This file is the central configuration source.
+11 -3
View File
@@ -45,7 +45,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.7.89
* @version 1.7.90
*
*/
@@ -1134,7 +1134,7 @@ async function ngrokStart() {
/**
* Start Local Server with ngrok https tunnel (optional)
*/
server.listen(port, null, () => {
server.listen(port, null, async () => {
log.debug(
`%c
@@ -1151,10 +1151,18 @@ server.listen(port, null, () => {
// https tunnel
if (ngrokEnabled) {
ngrokStart();
await ngrokStart();
} else {
log.info('Server config', getServerConfig());
}
// Warn if default secrets are still in use
if (api_key_secret === 'mirotalkp2p_default_secret') {
log.warn('WARNING: API_KEY_SECRET is set to the default value. Change it before deploying!');
}
if (jwtCfg.JWT_KEY === 'mirotalk_jwt_secret') {
log.warn('WARNING: JWT_SECRET is set to the default value. Change it before deploying!');
}
});
/**
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mirotalk",
"version": "1.7.89",
"version": "1.7.90",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalk",
"version": "1.7.89",
"version": "1.7.90",
"license": "AGPL-3.0",
"dependencies": {
"@mattermost/client": "11.5.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.7.89",
"version": "1.7.90",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -107,7 +107,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.7.89',
title: 'WebRTC P2P v1.7.90',
html: `
<button
id="support-button"
+2 -2
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.7.89
* @version 1.7.90
*
*/
@@ -14800,7 +14800,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.89',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.90',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `