Git history was lost when the previous Gitea instance was wiped and reinstalled due to an unresolved corruption bug — this commit is the last known-good file content, exported before the reinstall. Prior commit history is not recoverable through this path.
8 lines
199 B
TypeScript
8 lines
199 B
TypeScript
/**
|
|
* Generates a fresh AES-256-GCM key for CREDENTIALS_ENCRYPTION_KEY.
|
|
* Usage: npm run generate-key
|
|
*/
|
|
import crypto from "node:crypto";
|
|
|
|
console.log(crypto.randomBytes(32).toString("base64"));
|