Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. };