Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.js 616B

123456789101112131415161718
  1. // Runtime config + filesystem paths. Reads process.env once at startup.
  2. const fs = require('fs');
  3. const path = require('path');
  4. const PUBLIC_DIR = path.join(__dirname, 'public');
  5. const REC_DIR = path.join(__dirname, 'recordings');
  6. const TRANS_DIR = path.join(__dirname, 'transcripts');
  7. try { fs.mkdirSync(REC_DIR, { recursive: true }); } catch (e) {}
  8. try { fs.mkdirSync(TRANS_DIR, { recursive: true }); } catch (e) {}
  9. module.exports = {
  10. PORT: process.env.PORT || 8090,
  11. HTTPS_PORT: process.env.HTTPS_PORT || 8443,
  12. PUBLIC_DIR,
  13. REC_DIR,
  14. TRANS_DIR,
  15. SESSION_TTL: 1000 * 60 * 60 * 24, // 24h auto-logout
  16. };