mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 10:49:14 +01:00
* feat(docker): add encryption key generation for integration secrets * chore: address pull request feedback * fix: build failing * fix: docker build fails because of error when encryption key not defined
8 lines
348 B
JavaScript
8 lines
348 B
JavaScript
// This script generates a random encryption key
|
|
// This key is used to encrypt and decrypt the integration secrets
|
|
// In production it is generated in run.sh and stored in the environment variable ENCRYPTION_KEY
|
|
// during runtime, it's also stored in a file.
|
|
|
|
const crypto = require("crypto");
|
|
console.log(crypto.randomBytes(32).toString("hex"));
|