Skip to content

Commit

Permalink
[mirotalksfu] - fix login page
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Dec 22, 2024
1 parent ec26d0b commit 756eb16
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
5 changes: 4 additions & 1 deletion app/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.6.60
* @version 1.6.61
*
*/

Expand Down Expand Up @@ -670,6 +670,9 @@ function startServer() {

// handle login if user_auth enabled
app.get(['/login'], (req, res) => {
if (!hostCfg.protected) {
return res.redirect('/');
}
res.sendFile(views.login);
});

Expand Down
22 changes: 10 additions & 12 deletions app/src/config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ function getIPv4() {
}

/*
IPv4 Configuration Guide:
1. Localhost Setup:
- For local development with Docker, replace `getIPv4()` with '127.0.0.1'.
2. Production Setup:
- Replace `getIPv4()` with the 'Public Static IPv4 Address' of the server hosting this application.
- For AWS EC2 instances, replace `getIPv4()` with the 'Elastic IP' associated with the instance.
This ensures the public IP remains consistent across instance reboots.
IPv4 Configuration Guide:
1. Localhost Setup:
- For local development with Docker, replace `getIPv4()` with '127.0.0.1'.
2. Production Setup:
- Replace `getIPv4()` with the 'Public Static IPv4 Address' of the server hosting this application.
- For AWS EC2 instances, replace `getIPv4()` with the 'Elastic IP' associated with the instance.
This ensures the public IP remains consistent across instance reboots.
Note: Always enclose the IP address in single quotes ''.
*/
const IPv4 = getIPv4(); // Replace with the appropriate IPv4 address for your environment.
Expand All @@ -33,11 +33,9 @@ const numWorkers = require('os').cpus().length;

/*
Set the port range for WebRTC communication. This range is used for the dynamic allocation of UDP ports for media streams.
- Each participant requires 2 ports: one for audio and one for video.
- The default configuration supports up to 50 participants (50 * 2 ports = 100 ports).
- To support more participants, simply increase the port range.
- Each participant requires 2 ports: one for audio and one for video.
- The default configuration supports up to 50 participants (50 * 2 ports = 100 ports).
- To support more participants, simply increase the port range.
Note:
- When running in Docker, use 'network mode: host' for improved performance.
- Alternatively, enable 'webRtcServerActive: true' mode for better scalability.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
"version": "1.6.60",
"version": "1.6.61",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.6.60
* @version 1.6.61
*
*/

Expand Down Expand Up @@ -4619,7 +4619,7 @@ function showAbout() {
imageUrl: image.about,
customClass: { image: 'img-about' },
position: 'center',
title: 'WebRTC SFU v1.6.60',
title: 'WebRTC SFU v1.6.61',
html: `
<br />
<div id="about">
Expand Down
2 changes: 1 addition & 1 deletion public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - [email protected]
* @version 1.6.60
* @version 1.6.61
*
*/

Expand Down

0 comments on commit 756eb16

Please sign in to comment.