make stream salt change on every server start

This commit is contained in:
wukko
2023-04-29 17:40:08 +06:00
parent 8f27876aee
commit d8e9fc16d0
3 changed files with 6 additions and 5 deletions

View File

@@ -3,6 +3,9 @@ import "dotenv/config";
import express from "express";
import cors from "cors";
import rateLimit from "express-rate-limit";
import { randomBytes } from "crypto";
process.env.streamSalt = randomBytes(64).toString('hex');
import path from 'path';
import { fileURLToPath } from 'url';