Entrypoint, env and config etc

This commit is contained in:
Isaac
2022-03-18 16:27:32 +00:00
parent 7ecf71f8f3
commit 5ae4da227e
10 changed files with 426 additions and 202 deletions

8
scripts/keygen.mjs Normal file
View File

@@ -0,0 +1,8 @@
import { randomBytes } from 'crypto';
import { short } from 'leeks.js';
console.log(short(
'Set the "DB_ENCRYPTION_KEY" environment variable to: \n&1&!f' +
randomBytes(24).toString('hex') +
'&r\n\n&0&!e WARNING &r &e&lDo not lose the encryption key or most of the data in the database will be unreadable, requiring a new key and a full reset.'
));