mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-28 01:10:54 +01:00
ci: generate auth secret in production (#1681)
* ci: generate auth secret in production * refactor: remove no longer needed auth-secret from e2e test * fix: remove static auth secret
This commit is contained in:
7
scripts/generateRandomSecureKey.js
Normal file
7
scripts/generateRandomSecureKey.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// This script generates a random secure key with a length of 64 characters
|
||||
// This key is used to encrypt and decrypt the integration secrets for auth.js
|
||||
// In production it is generated in run.sh and stored in the environment variables ENCRYPTION_KEY / AUTH_SECRET
|
||||
// during runtime, it's also stored in a file.
|
||||
|
||||
const crypto = require("crypto");
|
||||
console.log(crypto.randomBytes(32).toString("hex"));
|
||||
Reference in New Issue
Block a user