[mirotalksfu] - add comments, fix typo

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

عرض الملف

@@ -1,2 +0,0 @@
# Recording...
app/rec

عرض الملف

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

عرض الملف

@@ -35,7 +35,11 @@ module.exports = {
cert: '../ssl/cert.pem', cert: '../ssl/cert.pem',
key: '../ssl/key.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: { recording: {
dir: 'rec', dir: 'rec',
enabled: false, enabled: false,

عرض الملف

@@ -11,6 +11,8 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./app/src/config.js:/src/app/src/config.js:ro - ./app/src/config.js:/src/app/src/config.js:ro
# These volume is mandatory if server.recording.enabled in the app/src/config.js
# - ./app/rec:/src/app/rec
# These volumes are not mandatory, comment if you want to use it # These volumes are not mandatory, comment if you want to use it
# - ./app/:/src/app/:ro # - ./app/:/src/app/:ro
# - ./public/:/src/public/:ro # - ./public/:/src/public/:ro