[mirotalksfu] - add comments, fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2024-02-16 09:02:50 +01:00
الأصل 8b81f0dd7e
التزام 28158e77f8
4 ملفات معدلة مع 11 إضافات و5 حذوفات

عرض الملف

@@ -450,8 +450,7 @@ function startServer() {
app.post(['/recSync'], (req, res) => {
// Store recording...
if (serverRecordingEnabled) {
if (!fs.existsSync(dir.rec)) fs.mkdirSync(dir.rec, { recursive: true });
//
const { fileName } = req.query;
if (!fileName) {
@@ -459,6 +458,9 @@ function startServer() {
}
try {
if (!fs.existsSync(dir.rec)) {
fs.mkdirSync(dir.rec, { recursive: true });
}
const filePath = dir.rec + fileName;
const writeStream = fs.createWriteStream(filePath, { flags: 'a' });

عرض الملف

@@ -35,7 +35,11 @@ module.exports = {
cert: '../ssl/cert.pem',
key: '../ssl/key.pem',
},
// The recording will be saved to the directory designated within your Server app/<dir>
/*
The recording will be saved to the directory designated within your Server app/<dir>
Note: if you use Docker: Create the "app/rec" directory, configure it as a volume in docker-compose.yml,
ensure proper permissions, and start the Docker container.
*/
recording: {
dir: 'rec',
enabled: false,